Pass | Sanity check: Setting non-TT attributes still works. | Asserts runNo asserts ran |
Pass | Set script.src via textContent | Asserts runPass | 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) |
|
Pass | Set script.src via nodeValue | Asserts runPass | 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) |
|
Pass | Set iframe.srcdoc via textContent | Asserts runPass | 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) |
|
Pass | Set iframe.srcdoc via nodeValue | Asserts runPass | 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) |
|
Pass | Set div.onclick via textContent | Asserts runPass | 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) |
|
Pass | Set div.onclick via nodeValue | Asserts runPass | 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) |
|