Summary

Harness status: OK

Found 7 tests

Details

ResultTest NameMessage
PassSanity check: Setting non-TT attributes still works.
Asserts runNo asserts ran
PassSet script.src via textContent
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "_ => {       element.attributes[0].textContent = "sldkjsfldk";     }")
    at Test.<anonymous> ( /trusted-types/block-string-assignment-to-attribute-via-attribute-node.html:27:5)
PassSet script.src via nodeValue
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "_ => {       element.attributes[0].nodeValue = "sdflkgjdlkgjdg";     }")
    at Test.<anonymous> ( /trusted-types/block-string-assignment-to-attribute-via-attribute-node.html:32:5)
PassSet iframe.srcdoc via textContent
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "_ => {       element.attributes[0].textContent = "sldkjsfldk";     }")
    at Test.<anonymous> ( /trusted-types/block-string-assignment-to-attribute-via-attribute-node.html:27:5)
PassSet iframe.srcdoc via nodeValue
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "_ => {       element.attributes[0].nodeValue = "sdflkgjdlkgjdg";     }")
    at Test.<anonymous> ( /trusted-types/block-string-assignment-to-attribute-via-attribute-node.html:32:5)
PassSet div.onclick via textContent
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "_ => {       element.attributes[0].textContent = "sldkjsfldk";     }")
    at Test.<anonymous> ( /trusted-types/block-string-assignment-to-attribute-via-attribute-node.html:27:5)
PassSet div.onclick via nodeValue
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "_ => {       element.attributes[0].nodeValue = "sdflkgjdlkgjdg";     }")
    at Test.<anonymous> ( /trusted-types/block-string-assignment-to-attribute-via-attribute-node.html:32:5)