Fail | No violation reported for TrustedHTML. | assert_equals: no exception thrown expected null but got object "NoModificationAllowedError: Failed to set the 'outerHTML' property on 'Element': This element has no parent node." at no_trusted_type_violation_for (https://www1.wpt.live/trusted-types/support/csp-violations.js:68:3)
at async Test.<anonymous> (https://www1.wpt.live/trusted-types/trusted-types-reporting-for-Element-outerHTML.html:13:7) Asserts runPass | assert_equals(0, 0, "no violation reported")
at no_trusted_type_violation_for ( /trusted-types/support/csp-violations.js:67:3) | Fail | assert_equals(object "NoModificationAllowedError: Failed to set the 'outerHTML' property on 'Element': This element has no parent node.", null, "no exception thrown")
at no_trusted_type_violation_for ( /trusted-types/support/csp-violations.js:68:3) |
|
Pass | Violation report for plain string. | Asserts runPass | assert_equals(1, 1, "a single violation reported")
at trusted_type_violation_for ( /trusted-types/support/csp-violations.js:58:3) | Pass | assert_true(true, "TypeError exception reported")
at trusted_type_violation_for ( /trusted-types/support/csp-violations.js:59:3) | Pass | assert_equals("trusted-types-sink", "trusted-types-sink")
at Test.<anonymous> ( /trusted-types/trusted-types-reporting-for-Element-outerHTML.html:22:7) | Pass | assert_equals(null, null)
at clipSampleIfNeeded ( /trusted-types/support/csp-violations.js:85:3) | Pass | assert_equals("Element outerHTML|<p>AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "Element outerHTML|<p>AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA")
at Test.<anonymous> ( /trusted-types/trusted-types-reporting-for-Element-outerHTML.html:23:7) |
|