Skip to content

Commit c37772c

Browse files
Mirko BrodesserBruceDai
Mirko Brodesser
authored andcommitted
Change namespace for Trusted-Types tests for setAttributeNS to null
See <w3c/trusted-types#418 (comment)> and <w3c/trusted-types#418 (comment)>. Preparation to fix <w3c/trusted-types#425>.
1 parent 784f007 commit c37772c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

trusted-types/block-string-assignment-to-Element-setAttributeNS.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
assert_element_accepts_trusted_script_url_set_ns(window, '2', t, 'a', 'b', RESULTS.SCRIPTURL);
2222
}, "Element.setAttributeNS assigned via policy (successful ScriptURL transformation)");
2323

24-
// Unknown, namespaced attributes should not be TT checked:
24+
// Unknown attributes should not be TT checked:
2525
test(t => {
2626
assert_element_accepts_non_trusted_type_set_ns('a', 'b', 'A string', 'A string');
2727
}, "Element.setAttributeNS accepts untrusted string for non-specced accessor");

trusted-types/support/helper.sub.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ function assert_element_accepts_non_trusted_type_explicit_set(tag, attribute, va
125125
assert_equals(elem.getAttribute(attribute), expected);
126126
}
127127

128-
let namespace = 'http://www.w3.org/1999/xhtml';
128+
let namespace = null;
129129
function assert_element_accepts_trusted_html_set_ns(win, c, t, tag, attribute, expected) {
130130
let p = createHTML_policy(win, c);
131131
let html = p.createHTML(INPUTS.HTML);

0 commit comments

Comments
 (0)