Skip to content

Commit

Permalink
Change namespace for Trusted-Types tests for setAttributeNS to null
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrodesser-Igalia authored and lukewarlow committed Mar 7, 2024
1 parent f10b300 commit f823803
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
assert_element_accepts_trusted_script_url_set_ns(window, '2', t, 'a', 'b', RESULTS.SCRIPTURL);
}, "Element.setAttributeNS assigned via policy (successful ScriptURL transformation)");

// Unknown, namespaced attributes should not be TT checked:
// Unknown attributes should not be TT checked:
test(t => {
assert_element_accepts_non_trusted_type_set_ns('a', 'b', 'A string', 'A string');
}, "Element.setAttributeNS accepts untrusted string for non-specced accessor");
Expand Down
2 changes: 1 addition & 1 deletion trusted-types/support/helper.sub.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ function assert_element_accepts_non_trusted_type_explicit_set(tag, attribute, va
assert_equals(elem.getAttribute(attribute), expected);
}

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

0 comments on commit f823803

Please sign in to comment.