Fail | Setting 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 runFail | 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) |
|