Skip to content

Commit 9c82b96

Browse files
fred-wangmoz-wptsync-bot
authored andcommittedOct 23, 2024·
Add WPT test for getAttributeType() with qualified attribute name.
See w3c/trusted-types#496 (comment) Differential Revision: https://phabricator.services.mozilla.com/D226476 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1917783 gecko-commit: aba2bd9d817f21ac8a590235dc6635861aea19eb gecko-reviewers: smaug
1 parent e8f9fad commit 9c82b96

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎trusted-types/TrustedTypePolicyFactory-getPropertyType.tentative.html

+5
Original file line numberDiff line numberDiff line change
@@ -134,5 +134,10 @@
134134
assert_equals(trustedTypes.getAttributeType("script", "href", NSURI_SVG.toUpperCase(), NSURI_XLINK), null, "case-sensitiveness of elementNs");
135135
assert_equals(trustedTypes.getAttributeType("script", "href", NSURI_SVG, NSURI_XLINK.toUpperCase()), null, "case-sensitiveness of attrNs");
136136
}, "getAttributeType with explicit elementNs and attrNs parameters");
137+
138+
test(t => {
139+
assert_equals(trustedTypes.getAttributeType("script", "href", NSURI_SVG, NSURI_XLINK), "TrustedScriptURL", "local name 'href'");
140+
assert_equals(trustedTypes.getAttributeType("script", "xlink:href", NSURI_SVG, NSURI_XLINK), null, "qualified name 'xlink:href'");
141+
}, "getAttributeType with qualified attribute name");
137142
</script>
138143
</body>

0 commit comments

Comments
 (0)
Please sign in to comment.