Skip to content

Commit

Permalink
Bug 1881234 [wpt PR 44699] - Change namespace for Trusted-Types tests…
Browse files Browse the repository at this point in the history
… for `setAttributeNS` to `null`, a=testonly

Automatic update from web-platform-tests
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>.

--

wpt-commits: f823803bb10d628a2b09a3e76b602c9d9f7866b9
wpt-pr: 44699
  • Loading branch information
mbrodesser-Igalia authored and moz-wptsync-bot committed Mar 14, 2024
1 parent eba1a60 commit 6b14af6
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
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 6b14af6

Please sign in to comment.