Summary

Harness status: OK

Found 2 tests

Details

ResultTest NameMessage
PassSetting innerHTML on a node inserted by the parser.
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "_ => divInsertedByParser.innerHTML = 'unsafe'")
    at Test.<anonymous> ( /trusted-types/require-trusted-types-for-TypeError-belongs-to-the-global-object-realm.html:10:5)
FailSetting innerHTML on a node adopted from a subframe.assert_throws_js: function "_ => divAdoptedFromIframe.innerHTML = 'unsafe'" threw object "TypeError: Failed to set the 'innerHTML' property on 'Element': This document requires 'TrustedHTML' assignment." ("TypeError") expected instance of function "function TypeError() { [native code] }" ("TypeError")
    at Test.<anonymous> (https://www1.wpt.live/trusted-types/require-trusted-types-for-TypeError-belongs-to-the-global-object-realm.html:24:5)
Asserts run
Fail
assert_throws_js(function "function TypeError() { [native code] }", function "_ => divAdoptedFromIframe.innerHTML = 'unsafe'")
    at Test.<anonymous> ( /trusted-types/require-trusted-types-for-TypeError-belongs-to-the-global-object-realm.html:24:5)