Pass | Element.setAttributeNS assigned via policy (successful HTML transformation) | Asserts runPass | assert_equals("Quack, I want to be a duck!", "Quack, I want to be a duck!")
at assert_element_accepts_trusted_type_set_ns ( /trusted-types/support/helper.sub.js:151:3) |
|
Pass | Element.setAttributeNS assigned via policy (successful Script transformation) | Asserts runPass | assert_equals("Meow, I want to be a cat!", "Meow, I want to be a cat!")
at assert_element_accepts_trusted_type_set_ns ( /trusted-types/support/helper.sub.js:151:3) |
|
Pass | Element.setAttributeNS assigned via policy (successful ScriptURL transformation) | Asserts runPass | assert_equals("http://this.is.a.successful.test/", "http://this.is.a.successful.test/")
at assert_element_accepts_trusted_type_set_ns ( /trusted-types/support/helper.sub.js:151:3) |
|
Pass | Element.setAttributeNS accepts untrusted string for non-specced accessor | Asserts runPass | assert_equals("A string", "A string")
at assert_element_accepts_value_set_ns ( /trusted-types/support/helper.sub.js:166:3) |
|
Pass | Element.setAttributeNS accepts null for non-specced accessor | Asserts runPass | assert_equals("null", "null")
at assert_element_accepts_value_set_ns ( /trusted-types/support/helper.sub.js:166:3) |
|
Pass | Assigning TrustedScriptURL to <svg:script xlink:href=...> works | Asserts runPass | assert_equals("undefined", "undefined")
at Test.<anonymous> ( /trusted-types/block-string-assignment-to-Element-setAttributeNS.html:45:7) |
|
Pass | Blocking non-TrustedScriptURL assignment to <svg:script xlink:href=...> works | Asserts runPass | assert_throws_js(function "function TypeError() { [native code] }", function "_ => { elem.setAttributeNS(NSURI_XLINK, "href", v); }")
at Test.<anonymous> ( /trusted-types/block-string-assignment-to-Element-setAttributeNS.html:54:9) | Pass | assert_throws_js(function "function TypeError() { [native code] }", function "_ => { elem.setAttributeNS(NSURI_XLINK, "href", v); }")
at Test.<anonymous> ( /trusted-types/block-string-assignment-to-Element-setAttributeNS.html:54:9) | Pass | assert_throws_js(function "function TypeError() { [native code] }", function "_ => { elem.setAttributeNS(NSURI_XLINK, "href", v); }")
at Test.<anonymous> ( /trusted-types/block-string-assignment-to-Element-setAttributeNS.html:54:9) | Pass | assert_throws_js(function "function TypeError() { [native code] }", function "_ => { elem.setAttributeNS(NSURI_XLINK, "href", v); }")
at Test.<anonymous> ( /trusted-types/block-string-assignment-to-Element-setAttributeNS.html:54:9) |
|
Pass | Check `setAttributeNS` allows setting non-trusted string for non-lowercase attribute "SRCDOC" (ns=null) for "iframe" element (ns=http://www.w3.org/1999/xhtml). | Asserts runPass | assert_equals("v", "v")
at assert_element_accepts_value_set_ns ( /trusted-types/support/helper.sub.js:166:3) |
|
Pass | Check `setAttributeNS` allows setting non-trusted string for non-lowercase attribute "SRC" (ns=null) for "script" element (ns=http://www.w3.org/1999/xhtml). | Asserts runPass | assert_equals("v", "v")
at assert_element_accepts_value_set_ns ( /trusted-types/support/helper.sub.js:166:3) |
|
Pass | Check `setAttributeNS` allows setting non-trusted string for non-lowercase attribute "HREF" (ns=null) for "script" element (ns=http://www.w3.org/2000/svg). | Asserts runPass | assert_equals("v", "v")
at assert_element_accepts_value_set_ns ( /trusted-types/support/helper.sub.js:166:3) |
|
Pass | Check `setAttributeNS` allows setting non-trusted string for non-lowercase attribute "HREF" (ns=http://www.w3.org/1999/xlink) for "script" element (ns=http://www.w3.org/2000/svg). | Asserts runPass | assert_equals("v", "v")
at assert_element_accepts_value_set_ns ( /trusted-types/support/helper.sub.js:166:3) |
|