From 8a1816ffa6aa6d6e74899aa3470f8f800b356494 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Wang?= Date: Wed, 23 Oct 2024 07:52:49 +0000 Subject: [PATCH] Add WPT test for getAttributeType() with qualified attribute name. See https://github.com/w3c/trusted-types/issues/496#issuecomment-2428834747 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 --- .../TrustedTypePolicyFactory-getPropertyType.tentative.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/trusted-types/TrustedTypePolicyFactory-getPropertyType.tentative.html b/trusted-types/TrustedTypePolicyFactory-getPropertyType.tentative.html index a19c685b52ab8d..50b1fb55ddbcf8 100644 --- a/trusted-types/TrustedTypePolicyFactory-getPropertyType.tentative.html +++ b/trusted-types/TrustedTypePolicyFactory-getPropertyType.tentative.html @@ -134,5 +134,10 @@ assert_equals(trustedTypes.getAttributeType("script", "href", NSURI_SVG.toUpperCase(), NSURI_XLINK), null, "case-sensitiveness of elementNs"); assert_equals(trustedTypes.getAttributeType("script", "href", NSURI_SVG, NSURI_XLINK.toUpperCase()), null, "case-sensitiveness of attrNs"); }, "getAttributeType with explicit elementNs and attrNs parameters"); + + test(t => { + assert_equals(trustedTypes.getAttributeType("script", "href", NSURI_SVG, NSURI_XLINK), "TrustedScriptURL", "local name 'href'"); + assert_equals(trustedTypes.getAttributeType("script", "xlink:href", NSURI_SVG, NSURI_XLINK), null, "qualified name 'xlink:href'"); + }, "getAttributeType with qualified attribute name");