Summary

Harness status: OK

Found 3 tests

Details

ResultTest NameMessage
Passa.setAttribute('onclick') sets a trusted script.
Asserts runNo asserts ran
Passa.setAttribute('onclick') sets an unsuitable trusted type.
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() => {     el.setAttribute('onclick', script);     container.appendChild(el);     el.click();   }")
    at Test.<anonymous> ( /trusted-types/GlobalEventHandlers-onclick.html:29:3)
Passa.setAttribute('click') sets a test string.
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() => {     el.setAttribute("onclick", "window.onclickFail2();");     container.appendChild(el);     el.click();   }")
    at Test.<anonymous> ( /trusted-types/GlobalEventHandlers-onclick.html:40:3)