Summary

Harness status: OK

Found 11 tests

Details

ResultTest NameMessage
PassElement.setAttributeNS assigned via policy (successful HTML transformation)
Asserts run
Pass
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)
PassElement.setAttributeNS assigned via policy (successful Script transformation)
Asserts run
Pass
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)
PassElement.setAttributeNS assigned via policy (successful ScriptURL transformation)
Asserts run
Pass
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)
PassElement.setAttributeNS accepts untrusted string for non-specced accessor
Asserts run
Pass
assert_equals("A string", "A string")
    at assert_element_accepts_value_set_ns ( /trusted-types/support/helper.sub.js:166:3)
PassElement.setAttributeNS accepts null for non-specced accessor
Asserts run
Pass
assert_equals("null", "null")
    at assert_element_accepts_value_set_ns ( /trusted-types/support/helper.sub.js:166:3)
PassAssigning TrustedScriptURL to <svg:script xlink:href=...> works
Asserts run
Pass
assert_equals("undefined", "undefined")
    at Test.<anonymous> ( /trusted-types/block-string-assignment-to-Element-setAttributeNS.html:45:7)
PassBlocking non-TrustedScriptURL assignment to <svg:script xlink:href=...> works
Asserts run
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
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)
PassCheck `setAttributeNS` allows setting non-trusted string for non-lowercase attribute "SRCDOC" (ns=null) for "iframe" element (ns=http://www.w3.org/1999/xhtml).
Asserts run
Pass
assert_equals("v", "v")
    at assert_element_accepts_value_set_ns ( /trusted-types/support/helper.sub.js:166:3)
PassCheck `setAttributeNS` allows setting non-trusted string for non-lowercase attribute "SRC" (ns=null) for "script" element (ns=http://www.w3.org/1999/xhtml).
Asserts run
Pass
assert_equals("v", "v")
    at assert_element_accepts_value_set_ns ( /trusted-types/support/helper.sub.js:166:3)
PassCheck `setAttributeNS` allows setting non-trusted string for non-lowercase attribute "HREF" (ns=null) for "script" element (ns=http://www.w3.org/2000/svg).
Asserts run
Pass
assert_equals("v", "v")
    at assert_element_accepts_value_set_ns ( /trusted-types/support/helper.sub.js:166:3)
PassCheck `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 run
Pass
assert_equals("v", "v")
    at assert_element_accepts_value_set_ns ( /trusted-types/support/helper.sub.js:166:3)