Bug 1926286 - Make attrNs/elementNs parameters of getAttributeType/getPropertyType nullable. r=smaug

Differential Revision: https://phabricator.services.mozilla.com/D226485
This commit is contained in:
Frédéric Wang
2024-10-23 10:30:13 +00:00
parent bf7102b6e3
commit 25c1c0df42
3 changed files with 3 additions and 15 deletions

View File

@@ -55,11 +55,11 @@ interface TrustedTypePolicyFactory {
DOMString? getAttributeType(
DOMString tagName,
DOMString attribute,
optional DOMString elementNs = "",
optional DOMString attrNs = "");
optional DOMString? elementNs = "",
optional DOMString? attrNs = "");
DOMString? getPropertyType(
DOMString tagName,
DOMString property,
optional DOMString elementNs = "");
optional DOMString? elementNs = "");
readonly attribute TrustedTypePolicy? defaultPolicy;
};

View File

@@ -1,9 +0,0 @@
[TrustedTypePolicyFactory-getAttributeType-namespace.html]
[0: getAttributeType with full namespace info.]
expected: FAIL
[1: getAttributeType with full namespace info.]
expected: FAIL
[2: getAttributeType with full namespace info.]
expected: FAIL

View File

@@ -1,3 +0,0 @@
[TrustedTypePolicyFactory-getPropertyType.tentative.html]
[getPropertyType/getAttributeType with explicit null elementNs/attrNs]
expected: FAIL