summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/trusted-types/TrustedTypePolicyFactory-getPropertyType.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/trusted-types/TrustedTypePolicyFactory-getPropertyType.html')
-rw-r--r--testing/web-platform/tests/trusted-types/TrustedTypePolicyFactory-getPropertyType.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/testing/web-platform/tests/trusted-types/TrustedTypePolicyFactory-getPropertyType.html b/testing/web-platform/tests/trusted-types/TrustedTypePolicyFactory-getPropertyType.html
index 21aba668cc..84bcb8d839 100644
--- a/testing/web-platform/tests/trusted-types/TrustedTypePolicyFactory-getPropertyType.html
+++ b/testing/web-platform/tests/trusted-types/TrustedTypePolicyFactory-getPropertyType.html
@@ -104,5 +104,10 @@
}, `${elem}.${attr} is maybe defined`);
}
}
+
+ test(t => {
+ assert_equals(trustedTypes.getPropertyType("img", "onerror"), null);
+ assert_equals(trustedTypes.getAttributeType("img", "onerror"), "TrustedScript");
+ }, "getPropertyType vs getAttributeType for event handler.");
</script>
</body>