Pass | a.setAttribute('onclick') sets a trusted script. | Asserts runNo asserts ran |
Pass | a.setAttribute('onclick') sets an unsuitable trusted type. | Asserts runPass | 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) |
|
Pass | a.setAttribute('click') sets a test string. | Asserts runPass | 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) |
|