From c1e624e1d16361daaa2dacb510c16fecc3cac6e6 Mon Sep 17 00:00:00 2001 From: Marco Castelluccio Date: Mon, 16 Dec 2024 00:58:25 +0000 Subject: [PATCH] Bug 1907849: part 3) Enrich documentation of . r=smaug Before it was hard to understand. Differential Revision: https://phabricator.services.mozilla.com/D231919 UltraBlame original commit: 882367ece1887f223f49219aa381aa5df880f9bb --- ...s-Elements-node-documents-globals-CSP.html | 83 ++++++++++++++++++- 1 file changed, 82 insertions(+), 1 deletion(-) diff --git a/testing/web-platform/tests/trusted-types/Element-setAttribute-respects-Elements-node-documents-globals-CSP.html b/testing/web-platform/tests/trusted-types/Element-setAttribute-respects-Elements-node-documents-globals-CSP.html index f51ce3412c6a6..45f34f14d3272 100644 --- a/testing/web-platform/tests/trusted-types/Element-setAttribute-respects-Elements-node-documents-globals-CSP.html +++ b/testing/web-platform/tests/trusted-types/Element-setAttribute-respects-Elements-node-documents-globals-CSP.html @@ -542,13 +542,94 @@ ' s global -belongs +should +belong to +/ +/ a TT - realm . +/ +/ +Hence +below +calls +to +setAttributeNode +and +setAttributeNS +/ +/ +should +throw +because +/ +/ +< +https +: +/ +/ +github +. +com +/ +whatwg +/ +dom +/ +pull +/ +1268 +/ +files +# +diff +- +30f698d9b4650514daf7a04de5e44eebf8feff1a30e0505f8eeaf06703b2777dR6587 +> +/ +/ +invokes +< +https +: +/ +/ +www +. +w3 +. +org +/ +TR +/ +trusted +- +types +/ +# +validate +- +attribute +- +mutation +> +. +/ +/ +The +latter +should +throw +when +executing +step +5 +. assert_throws_js ( sourceFrame