From fd4d5012943e27322d5c3766c02c2a1a864bfe2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Wang?= Date: Fri, 14 Feb 2025 06:49:12 +0000 Subject: [PATCH] Bug 1944511 Implement remaining Trusted Type support for attribute changes. r=smaug Differential Revision: https://phabricator.services.mozilla.com/D236107 --- dom/base/Attr.cpp | 48 +- dom/base/Attr.h | 19 +- dom/base/CharacterData.cpp | 2 +- dom/base/Element.cpp | 6 +- dom/base/Element.h | 7 +- dom/base/nsDOMAttributeMap.cpp | 31 +- dom/base/nsDOMAttributeMap.h | 3 +- dom/base/nsRange.cpp | 6 +- dom/html/HTMLScriptElement.cpp | 12 +- dom/html/HTMLScriptElement.h | 7 +- .../trusted-types/TrustedTypeUtils.cpp | 43 +- dom/security/trusted-types/TrustedTypeUtils.h | 4 + .../WebBrowserPersistLocalDocument.cpp | 4 +- dom/webidl/Attr.webidl | 9 + dom/webidl/HTMLScriptElement.webidl | 2 +- ...ssignment-to-Element-setAttribute.html.ini | 3 - ...t-to-attribute-via-attribute-node.html.ini | 18 - ...s-mutations-in-callback.tentative.html.ini | 717 ------------------ ...uire-trusted-types-default-policy.html.ini | 336 -------- ...e-trusted-types-no-default-policy.html.ini | 336 -------- 20 files changed, 151 insertions(+), 1462 deletions(-) delete mode 100644 testing/web-platform/meta/trusted-types/block-string-assignment-to-Element-setAttribute.html.ini delete mode 100644 testing/web-platform/meta/trusted-types/block-string-assignment-to-attribute-via-attribute-node.html.ini delete mode 100644 testing/web-platform/meta/trusted-types/set-attributes-mutations-in-callback.tentative.html.ini delete mode 100644 testing/web-platform/meta/trusted-types/set-attributes-require-trusted-types-default-policy.html.ini delete mode 100644 testing/web-platform/meta/trusted-types/set-attributes-require-trusted-types-no-default-policy.html.ini diff --git a/dom/base/Attr.cpp b/dom/base/Attr.cpp index 7ac76be544cf..bbf2fd012902 100644 --- a/dom/base/Attr.cpp +++ b/dom/base/Attr.cpp @@ -15,6 +15,8 @@ #include "mozilla/InternalMutationEvent.h" #include "mozilla/StaticPrefs_dom.h" #include "nsContentCreatorFunctions.h" +#include "mozilla/dom/TrustedTypesConstants.h" +#include "mozilla/dom/TrustedTypeUtils.h" #include "nsError.h" #include "nsUnicharUtils.h" #include "nsDOMString.h" @@ -146,6 +148,30 @@ void Attr::GetValue(nsAString& aValue) { void Attr::SetValue(const nsAString& aValue, nsIPrincipal* aTriggeringPrincipal, ErrorResult& aRv) { + nsCOMPtr element = GetElement(); + if (!element) { + mValue = aValue; + return; + } + + RefPtr nameAtom = mNodeInfo->NameAtom(); + + Maybe compliantStringHolder; + const nsAString* compliantString = + TrustedTypeUtils::GetTrustedTypesCompliantAttributeValue( + *element, nameAtom, mNodeInfo->NamespaceID(), aValue, + compliantStringHolder, aRv); + if (aRv.Failed()) { + return; + } + + // After the GetTrustedTypesCompliantAttributeValue() call, the attribute may + // have been detached or moved to another element so perform the check on + // GetElement() again. + SetValueInternal(*compliantString, aRv); +} + +void Attr::SetValueInternal(const nsAString& aValue, ErrorResult& aRv) { Element* element = GetElement(); if (!element) { mValue = aValue; @@ -154,23 +180,23 @@ void Attr::SetValue(const nsAString& aValue, nsIPrincipal* aTriggeringPrincipal, RefPtr nameAtom = mNodeInfo->NameAtom(); aRv = element->SetAttr(mNodeInfo->NamespaceID(), nameAtom, - mNodeInfo->GetPrefixAtom(), aValue, - aTriggeringPrincipal, true); -} - -void Attr::SetValue(const nsAString& aValue, ErrorResult& aRv) { - SetValue(aValue, nullptr, aRv); + mNodeInfo->GetPrefixAtom(), aValue, nullptr, true); } bool Attr::Specified() const { return true; } Element* Attr::GetOwnerElement() { return GetElement(); } +void Attr::SetNodeValueWithTrustedTypeCheck(const nsAString& aNodeValue, + ErrorResult& aError) { + SetValue(aNodeValue, nullptr, aError); +} + void Attr::GetNodeValueInternal(nsAString& aNodeValue) { GetValue(aNodeValue); } void Attr::SetNodeValueInternal(const nsAString& aNodeValue, ErrorResult& aError) { - SetValue(aNodeValue, nullptr, aError); + SetValueInternal(aNodeValue, aError); } nsresult Attr::Clone(dom::NodeInfo* aNodeInfo, nsINode** aResult) const { @@ -191,6 +217,12 @@ nsIURI* Attr::GetBaseURI(bool aTryUseXHRDocBaseURI) const { : OwnerDoc()->GetBaseURI(aTryUseXHRDocBaseURI); } +void Attr::SetTextContentWithTrustedTypeCheck(const nsAString& aTextContent, + nsIPrincipal* aSubjectPrincipal, + ErrorResult& aError) { + SetValue(aTextContent, aSubjectPrincipal, aError); +} + void Attr::GetTextContentInternal(nsAString& aTextContent, OOMReporter& aError) { GetValue(aTextContent); @@ -199,7 +231,7 @@ void Attr::GetTextContentInternal(nsAString& aTextContent, void Attr::SetTextContentInternal(const nsAString& aTextContent, nsIPrincipal* aSubjectPrincipal, ErrorResult& aError) { - SetNodeValueInternal(aTextContent, aError); + SetValueInternal(aTextContent, aError); } void Attr::GetEventTargetParent(EventChainPreVisitor& aVisitor) { diff --git a/dom/base/Attr.h b/dom/base/Attr.h index 311f7aa597b0..31060a8c36b8 100644 --- a/dom/base/Attr.h +++ b/dom/base/Attr.h @@ -42,11 +42,23 @@ class Attr final : public nsINode { NS_IMPL_FROMNODE_HELPER(Attr, IsAttr()) // nsINode interface + void GetTextContentWithTrustedTypeCheck(nsAString& aTextContent, + mozilla::OOMReporter& aError) { + GetTextContentInternal(aTextContent, aError); + } + MOZ_CAN_RUN_SCRIPT void SetTextContentWithTrustedTypeCheck( + const nsAString& aTextContent, nsIPrincipal* aSubjectPrincipal, + mozilla::ErrorResult& aError); virtual void GetTextContentInternal(nsAString& aTextContent, OOMReporter& aError) override; virtual void SetTextContentInternal(const nsAString& aTextContent, nsIPrincipal* aSubjectPrincipal, ErrorResult& aError) override; + void GetNodeValueWithTrustedTypeCheck(nsAString& aNodeValue) { + GetNodeValueInternal(aNodeValue); + } + MOZ_CAN_RUN_SCRIPT void SetNodeValueWithTrustedTypeCheck( + const nsAString& aNodeValue, mozilla::ErrorResult& aError); virtual void GetNodeValueInternal(nsAString& aNodeValue) override; virtual void SetNodeValueInternal(const nsAString& aNodeValue, ErrorResult& aError) override; @@ -83,9 +95,10 @@ class Attr final : public nsINode { void GetName(nsAString& aName); void GetValue(nsAString& aValue); - void SetValue(const nsAString& aValue, nsIPrincipal* aTriggeringPrincipal, - ErrorResult& aRv); - void SetValue(const nsAString& aValue, ErrorResult& aRv); + MOZ_CAN_RUN_SCRIPT void SetValue(const nsAString& aValue, + nsIPrincipal* aTriggeringPrincipal, + ErrorResult& aRv); + void SetValueInternal(const nsAString& aValue, ErrorResult& aRv); bool Specified() const; diff --git a/dom/base/CharacterData.cpp b/dom/base/CharacterData.cpp index 9e1b6ec98567..403a6892ac75 100644 --- a/dom/base/CharacterData.cpp +++ b/dom/base/CharacterData.cpp @@ -120,7 +120,7 @@ void CharacterData::SetTextContentInternal(const nsAString& aTextContent, ErrorResult& aError) { // Batch possible DOMSubtreeModified events. mozAutoSubtreeModified subtree(OwnerDoc(), nullptr); - return SetNodeValue(aTextContent, aError); + return SetNodeValueInternal(aTextContent, aError); } void CharacterData::GetData(nsAString& aData) const { diff --git a/dom/base/Element.cpp b/dom/base/Element.cpp index 69ee2fd1466f..2fd9a80dee0a 100644 --- a/dom/base/Element.cpp +++ b/dom/base/Element.cpp @@ -1604,7 +1604,8 @@ Attr* Element::GetAttributeNode(const nsAString& aName) { already_AddRefed Element::SetAttributeNode(Attr& aNewAttr, ErrorResult& aError) { - return Attributes()->SetNamedItemNS(aNewAttr, aError); + RefPtr attrMap = Attributes(); + return attrMap->SetNamedItemNS(aNewAttr, aError); } already_AddRefed Element::RemoveAttributeNode(Attr& aAttribute, @@ -1795,7 +1796,8 @@ Attr* Element::GetAttributeNodeNSInternal(const nsAString& aNamespaceURI, already_AddRefed Element::SetAttributeNodeNS(Attr& aNewAttr, ErrorResult& aError) { - return Attributes()->SetNamedItemNS(aNewAttr, aError); + RefPtr attrMap = Attributes(); + return attrMap->SetNamedItemNS(aNewAttr, aError); } already_AddRefed Element::GetElementsByTagNameNS( diff --git a/dom/base/Element.h b/dom/base/Element.h index 8deca8d1c731..7a150ec4d424 100644 --- a/dom/base/Element.h +++ b/dom/base/Element.h @@ -1429,13 +1429,14 @@ class Element : public FragmentOrElement { already_AddRefed RequestFullscreen(CallerType, ErrorResult&); void RequestPointerLock(CallerType aCallerType); Attr* GetAttributeNode(const nsAString& aName); - already_AddRefed SetAttributeNode(Attr& aNewAttr, ErrorResult& aError); + MOZ_CAN_RUN_SCRIPT already_AddRefed SetAttributeNode( + Attr& aNewAttr, ErrorResult& aError); already_AddRefed RemoveAttributeNode(Attr& aOldAttr, ErrorResult& aError); Attr* GetAttributeNodeNS(const nsAString& aNamespaceURI, const nsAString& aLocalName); - already_AddRefed SetAttributeNodeNS(Attr& aNewAttr, - ErrorResult& aError); + MOZ_CAN_RUN_SCRIPT already_AddRefed SetAttributeNodeNS( + Attr& aNewAttr, ErrorResult& aError); MOZ_CAN_RUN_SCRIPT already_AddRefed GetClientRects(); MOZ_CAN_RUN_SCRIPT already_AddRefed GetBoundingClientRect(); diff --git a/dom/base/nsDOMAttributeMap.cpp b/dom/base/nsDOMAttributeMap.cpp index 5eba4c981d39..f0d39c52e6cd 100644 --- a/dom/base/nsDOMAttributeMap.cpp +++ b/dom/base/nsDOMAttributeMap.cpp @@ -15,6 +15,8 @@ #include "mozilla/dom/Element.h" #include "mozilla/dom/NamedNodeMapBinding.h" #include "mozilla/dom/NodeInfoInlines.h" +#include "mozilla/dom/TrustedTypesConstants.h" +#include "mozilla/dom/TrustedTypeUtils.h" #include "nsAttrName.h" #include "nsContentUtils.h" #include "nsError.h" @@ -195,6 +197,28 @@ already_AddRefed nsDOMAttributeMap::SetNamedItemNS(Attr& aAttr, return attribute.forget(); } + nsAutoString value; + aAttr.GetValue(value); + + RefPtr ni = aAttr.NodeInfo(); + + Maybe compliantStringHolder; + RefPtr nameAtom = ni->NameAtom(); + nsCOMPtr element = mContent; + const nsAString* compliantString = + TrustedTypeUtils::GetTrustedTypesCompliantAttributeValue( + *element, nameAtom, ni->NamespaceID(), value, compliantStringHolder, + aError); + if (aError.Failed()) { + return nullptr; + } + // After the GetTrustedTypesCompliantAttributeValue() call, the attribute may + // have been attached to another element. + if (aAttr.GetMap() && aAttr.GetMap() != this) { + aError.Throw(NS_ERROR_DOM_INUSE_ATTRIBUTE_ERR); + return nullptr; + } + nsresult rv; if (mContent->OwnerDoc() != aAttr.OwnerDoc()) { DebugOnly adoptedNode = @@ -243,11 +267,6 @@ already_AddRefed nsDOMAttributeMap::SetNamedItemNS(Attr& aAttr, } } - nsAutoString value; - aAttr.GetValue(value); - - RefPtr ni = aAttr.NodeInfo(); - // Add the new attribute to the attribute map before updating // its value in the element. @see bug 364413. nsAttrKey attrkey(ni->NamespaceID(), ni->NameAtom()); @@ -255,7 +274,7 @@ already_AddRefed nsDOMAttributeMap::SetNamedItemNS(Attr& aAttr, aAttr.SetMap(this); rv = mContent->SetAttr(ni->NamespaceID(), ni->NameAtom(), ni->GetPrefixAtom(), - value, true); + *compliantString, true); if (NS_FAILED(rv)) { DropAttribute(ni->NamespaceID(), ni->NameAtom()); aError.Throw(rv); diff --git a/dom/base/nsDOMAttributeMap.h b/dom/base/nsDOMAttributeMap.h index 5ed1e96544ab..c14bcb9c0598 100644 --- a/dom/base/nsDOMAttributeMap.h +++ b/dom/base/nsDOMAttributeMap.h @@ -147,7 +147,8 @@ class nsDOMAttributeMap final : public nsISupports, public nsWrapperCache { Attr* GetNamedItemNS(const nsAString& aNamespaceURI, const nsAString& aLocalName); - already_AddRefed SetNamedItemNS(Attr& aNode, ErrorResult& aError); + MOZ_CAN_RUN_SCRIPT already_AddRefed SetNamedItemNS(Attr& aNode, + ErrorResult& aError); already_AddRefed RemoveNamedItemNS(const nsAString& aNamespaceURI, const nsAString& aLocalName, ErrorResult& aError); diff --git a/dom/base/nsRange.cpp b/dom/base/nsRange.cpp index 43d3eb08b0e3..cee140bd851b 100644 --- a/dom/base/nsRange.cpp +++ b/dom/base/nsRange.cpp @@ -1922,7 +1922,7 @@ void nsRange::CutContents(DocumentFragment** aFragment, ErrorResult& aRv) { if (NS_WARN_IF(aRv.Failed())) { return; } - clone->SetNodeValue(cutValue, aRv); + clone->SetNodeValueInternal(cutValue, aRv); if (NS_WARN_IF(aRv.Failed())) { return; } @@ -1957,7 +1957,7 @@ void nsRange::CutContents(DocumentFragment** aFragment, ErrorResult& aRv) { if (NS_WARN_IF(aRv.Failed())) { return; } - clone->SetNodeValue(cutValue, aRv); + clone->SetNodeValueInternal(cutValue, aRv); if (NS_WARN_IF(aRv.Failed())) { return; } @@ -1989,7 +1989,7 @@ void nsRange::CutContents(DocumentFragment** aFragment, ErrorResult& aRv) { if (NS_WARN_IF(aRv.Failed())) { return; } - clone->SetNodeValue(cutValue, aRv); + clone->SetNodeValueInternal(cutValue, aRv); if (NS_WARN_IF(aRv.Failed())) { return; } diff --git a/dom/html/HTMLScriptElement.cpp b/dom/html/HTMLScriptElement.cpp index c086bb2f750a..42654a6fa44d 100644 --- a/dom/html/HTMLScriptElement.cpp +++ b/dom/html/HTMLScriptElement.cpp @@ -205,14 +205,14 @@ void HTMLScriptElement::SetInnerText( nsGenericHTMLElement::SetInnerText(*compliantString); } -void HTMLScriptElement::GetTextContent( +void HTMLScriptElement::GetTrustedScriptOrStringTextContent( Nullable& aTextContent, mozilla::OOMReporter& aError) { FragmentOrElement::GetTextContentInternal( aTextContent.SetValue().SetAsString(), aError); } -void HTMLScriptElement::SetTextContent( +void HTMLScriptElement::SetTrustedScriptOrStringTextContent( const Nullable& aTextContent, nsIPrincipal* aSubjectPrincipal, mozilla::ErrorResult& aError) { constexpr nsLiteralString sink = u"HTMLScriptElement textContent"_ns; @@ -220,7 +220,7 @@ void HTMLScriptElement::SetTextContent( if (aTextContent.IsNull()) { Nullable emptyString; emptyString.SetValue().SetStringLiteral(u""); - SetTextContent(emptyString, aSubjectPrincipal, aError); + SetTrustedScriptOrStringTextContent(emptyString, aSubjectPrincipal, aError); return; } const nsAString* compliantString = @@ -233,12 +233,6 @@ void HTMLScriptElement::SetTextContent( SetTextContentInternal(*compliantString, aSubjectPrincipal, aError); } -void HTMLScriptElement::SetTextContent( - const Nullable& aTextContent, - mozilla::ErrorResult& aError) { - SetTextContent(aTextContent, nullptr, aError); -} - void HTMLScriptElement::GetSrc(OwningTrustedScriptURLOrString& aSrc) { GetURIAttr(nsGkAtoms::src, nullptr, aSrc.SetAsString()); } diff --git a/dom/html/HTMLScriptElement.h b/dom/html/HTMLScriptElement.h index b529e63c11e1..d54db2ea947e 100644 --- a/dom/html/HTMLScriptElement.h +++ b/dom/html/HTMLScriptElement.h @@ -88,16 +88,13 @@ class HTMLScriptElement final : public nsGenericHTMLElement, const TrustedScriptOrNullIsEmptyString& aValue, ErrorResult& aError); // @param aTextContent will always be of type `String`. - MOZ_CAN_RUN_SCRIPT void GetTextContent( + MOZ_CAN_RUN_SCRIPT void GetTrustedScriptOrStringTextContent( Nullable& aTextContent, mozilla::OOMReporter& aError); - MOZ_CAN_RUN_SCRIPT void SetTextContent( + MOZ_CAN_RUN_SCRIPT void SetTrustedScriptOrStringTextContent( const Nullable& aTextContent, nsIPrincipal* aSubjectPrincipal, mozilla::ErrorResult& aError); - MOZ_CAN_RUN_SCRIPT void SetTextContent( - const Nullable& aTextContent, - mozilla::ErrorResult& aError); void GetCharset(nsAString& aCharset) { GetHTMLAttr(nsGkAtoms::charset, aCharset); diff --git a/dom/security/trusted-types/TrustedTypeUtils.cpp b/dom/security/trusted-types/TrustedTypeUtils.cpp index 6ee57e40b5e2..c2369e9b960f 100644 --- a/dom/security/trusted-types/TrustedTypeUtils.cpp +++ b/dom/security/trusted-types/TrustedTypeUtils.cpp @@ -641,10 +641,10 @@ bool GetTrustedTypeDataForAttribute(const nsAtom* aElementName, return false; } +template MOZ_CAN_RUN_SCRIPT const nsAString* GetTrustedTypesCompliantAttributeValue( const nsINode& aElement, nsAtom* aAttributeName, - int32_t aAttributeNamespaceID, - const TrustedHTMLOrTrustedScriptOrTrustedScriptURLOrString& aNewValue, + int32_t aAttributeNamespaceID, const TrustedTypeOrStringArg& aNewValue, Maybe& aResultHolder, ErrorResult& aError) { if (!StaticPrefs::dom_security_trusted_types_enabled()) { // A trusted type might've been created before the pref was set to `false`, @@ -670,12 +670,19 @@ MOZ_CAN_RUN_SCRIPT const nsAString* GetTrustedTypesCompliantAttributeValue( return GetContent(aNewValue); } - if ((expectedType == TrustedType::TrustedHTML && aNewValue.IsTrustedHTML()) || - (expectedType == TrustedType::TrustedScript && - aNewValue.IsTrustedScript()) || - (expectedType == TrustedType::TrustedScriptURL && - aNewValue.IsTrustedScriptURL())) { - return GetAsTrustedType(aNewValue); + if constexpr (std::is_same_v< + TrustedTypeOrStringArg, + TrustedHTMLOrTrustedScriptOrTrustedScriptURLOrString>) { + if ((expectedType == TrustedType::TrustedHTML && + aNewValue.IsTrustedHTML()) || + (expectedType == TrustedType::TrustedScript && + aNewValue.IsTrustedScript()) || + (expectedType == TrustedType::TrustedScriptURL && + aNewValue.IsTrustedScriptURL())) { + return GetAsTrustedType(aNewValue); + } + } else { + MOZ_ASSERT((std::is_same_v)); } const nsAString* input = GetContent(aNewValue); @@ -697,6 +704,26 @@ MOZ_CAN_RUN_SCRIPT const nsAString* GetTrustedTypesCompliantAttributeValue( return nullptr; } +MOZ_CAN_RUN_SCRIPT const nsAString* GetTrustedTypesCompliantAttributeValue( + const nsINode& aElement, nsAtom* aAttributeName, + int32_t aAttributeNamespaceID, + const TrustedHTMLOrTrustedScriptOrTrustedScriptURLOrString& aNewValue, + Maybe& aResultHolder, ErrorResult& aError) { + return GetTrustedTypesCompliantAttributeValue< + TrustedHTMLOrTrustedScriptOrTrustedScriptURLOrString>( + aElement, aAttributeName, aAttributeNamespaceID, aNewValue, aResultHolder, + aError); +} + +MOZ_CAN_RUN_SCRIPT const nsAString* GetTrustedTypesCompliantAttributeValue( + const nsINode& aElement, nsAtom* aAttributeName, + int32_t aAttributeNamespaceID, const nsAString& aNewValue, + Maybe& aResultHolder, ErrorResult& aError) { + return GetTrustedTypesCompliantAttributeValue( + aElement, aAttributeName, aAttributeNamespaceID, &aNewValue, + aResultHolder, aError); +} + bool HostGetCodeForEval(JSContext* aCx, JS::Handle aCode, JS::MutableHandle aOutCode) { JS::Rooted obj(aCx, aCode); diff --git a/dom/security/trusted-types/TrustedTypeUtils.h b/dom/security/trusted-types/TrustedTypeUtils.h index c0de7530fd69..60fa2f80bfde 100644 --- a/dom/security/trusted-types/TrustedTypeUtils.h +++ b/dom/security/trusted-types/TrustedTypeUtils.h @@ -136,6 +136,10 @@ MOZ_CAN_RUN_SCRIPT const nsAString* GetTrustedTypesCompliantAttributeValue( int32_t aAttributeNamespaceID, const TrustedHTMLOrTrustedScriptOrTrustedScriptURLOrString& aNewValue, Maybe& aResultHolder, ErrorResult& aError); +MOZ_CAN_RUN_SCRIPT const nsAString* GetTrustedTypesCompliantAttributeValue( + const nsINode& aElement, nsAtom* aAttributeName, + int32_t aAttributeNamespaceID, const nsAString& aNewValue, + Maybe& aResultHolder, ErrorResult& aError); // https://html.spec.whatwg.org/multipage/webappapis.html#hostgetcodeforeval(argument) bool HostGetCodeForEval(JSContext* aCx, JS::Handle aCode, diff --git a/dom/webbrowserpersist/WebBrowserPersistLocalDocument.cpp b/dom/webbrowserpersist/WebBrowserPersistLocalDocument.cpp index 9fbbb1292005..451d23da4f8d 100644 --- a/dom/webbrowserpersist/WebBrowserPersistLocalDocument.cpp +++ b/dom/webbrowserpersist/WebBrowserPersistLocalDocument.cpp @@ -715,7 +715,7 @@ nsresult PersistNodeFixup::FixupAttribute(nsINode* aNode, attr->GetValue(uri); rv = FixupURI(uri); if (NS_SUCCEEDED(rv)) { - attr->SetValue(uri, IgnoreErrors()); + attr->SetValueInternal(uri, IgnoreErrors()); } } @@ -766,7 +766,7 @@ nsresult PersistNodeFixup::FixupAnchor(nsINode* aNode) { nsAutoCString uriSpec; rv = newURI->GetSpec(uriSpec); NS_ENSURE_SUCCESS(rv, rv); - attr->SetValue(NS_ConvertUTF8toUTF16(uriSpec), IgnoreErrors()); + attr->SetValueInternal(NS_ConvertUTF8toUTF16(uriSpec), IgnoreErrors()); } } diff --git a/dom/webidl/Attr.webidl b/dom/webidl/Attr.webidl index 52759b29bac6..5b254aa1ff74 100644 --- a/dom/webidl/Attr.webidl +++ b/dom/webidl/Attr.webidl @@ -16,6 +16,15 @@ interface Attr : Node { [CEReactions, SetterNeedsSubjectPrincipal=NonSystem, SetterThrows] attribute DOMString value; + // Rename binary names of nodeValue and textContent from the Node interface. + [CEReactions, SetterThrows, Pure, + BinaryName="nodeValueWithTrustedTypeCheck"] + attribute DOMString? nodeValue; + [CEReactions, SetterThrows, GetterCanOOM, + SetterNeedsSubjectPrincipal=NonSystem, Pure, + BinaryName="textContentWithTrustedTypeCheck"] + attribute DOMString? textContent; + [Constant] readonly attribute DOMString name; [Constant] diff --git a/dom/webidl/HTMLScriptElement.webidl b/dom/webidl/HTMLScriptElement.webidl index e31b30463af8..3d1c513eb375 100644 --- a/dom/webidl/HTMLScriptElement.webidl +++ b/dom/webidl/HTMLScriptElement.webidl @@ -56,5 +56,5 @@ partial interface HTMLScriptElement { partial interface HTMLScriptElement { [CEReactions, Throws] attribute (TrustedScript or [LegacyNullToEmptyString] DOMString) innerText; [CEReactions, SetterThrows, GetterCanOOM, - SetterNeedsSubjectPrincipal=NonSystem] attribute (TrustedScript or DOMString)? textContent; + SetterNeedsSubjectPrincipal=NonSystem, BinaryName="trustedScriptOrStringTextContent"] attribute (TrustedScript or DOMString)? textContent; }; diff --git a/testing/web-platform/meta/trusted-types/block-string-assignment-to-Element-setAttribute.html.ini b/testing/web-platform/meta/trusted-types/block-string-assignment-to-Element-setAttribute.html.ini deleted file mode 100644 index 692b035b1041..000000000000 --- a/testing/web-platform/meta/trusted-types/block-string-assignment-to-Element-setAttribute.html.ini +++ /dev/null @@ -1,3 +0,0 @@ -[block-string-assignment-to-Element-setAttribute.html] - [`script.src = setAttributeNode(embed.src)` with string works.] - expected: FAIL diff --git a/testing/web-platform/meta/trusted-types/block-string-assignment-to-attribute-via-attribute-node.html.ini b/testing/web-platform/meta/trusted-types/block-string-assignment-to-attribute-via-attribute-node.html.ini deleted file mode 100644 index 24bc8faca554..000000000000 --- a/testing/web-platform/meta/trusted-types/block-string-assignment-to-attribute-via-attribute-node.html.ini +++ /dev/null @@ -1,18 +0,0 @@ -[block-string-assignment-to-attribute-via-attribute-node.html] - [Set script.src via textContent] - expected: FAIL - - [Set script.src via nodeValue] - expected: FAIL - - [Set iframe.srcdoc via textContent] - expected: FAIL - - [Set iframe.srcdoc via nodeValue] - expected: FAIL - - [Set div.onclick via textContent] - expected: FAIL - - [Set div.onclick via nodeValue] - expected: FAIL diff --git a/testing/web-platform/meta/trusted-types/set-attributes-mutations-in-callback.tentative.html.ini b/testing/web-platform/meta/trusted-types/set-attributes-mutations-in-callback.tentative.html.ini deleted file mode 100644 index 6e35e2f30a28..000000000000 --- a/testing/web-platform/meta/trusted-types/set-attributes-mutations-in-callback.tentative.html.ini +++ /dev/null @@ -1,717 +0,0 @@ -[set-attributes-mutations-in-callback.tentative.html] - [Element.setAttributeNode works for elementNS=http://www.w3.org/1999/xhtml, element=DIV, attrName=onclick (delete other attribute before)] - expected: FAIL - - [Element.setAttributeNode works for elementNS=http://www.w3.org/2000/svg, element=g, attrName=ondblclick (delete other attribute before)] - expected: FAIL - - [Element.setAttributeNode works for elementNS=http://www.w3.org/1998/Math/MathML, element=mrow, attrName=onmousedown (delete other attribute before)] - expected: FAIL - - [Element.setAttributeNode works for elementNS=https://example.com/namespace, element=foo, attrName=onmouseup (delete other attribute before)] - expected: FAIL - - [Element.setAttributeNode works for elementNS=http://www.w3.org/1999/xhtml, element=IFRAME, attrName=srcdoc (delete other attribute before)] - expected: FAIL - - [Element.setAttributeNode works for elementNS=http://www.w3.org/1999/xhtml, element=SCRIPT, attrName=src (delete other attribute before)] - expected: FAIL - - [Element.setAttributeNode works for elementNS=http://www.w3.org/2000/svg, element=script, attrName=href (delete other attribute before)] - expected: FAIL - - [Element.setAttributeNode works for elementNS=http://www.w3.org/2000/svg, element=script, attrNS=http://www.w3.org/1999/xlink, attrName=href (delete other attribute before)] - expected: FAIL - - [Element.setAttributeNodeNS works for elementNS=http://www.w3.org/1999/xhtml, element=DIV, attrName=onclick (delete other attribute before)] - expected: FAIL - - [Element.setAttributeNodeNS works for elementNS=http://www.w3.org/2000/svg, element=g, attrName=ondblclick (delete other attribute before)] - expected: FAIL - - [Element.setAttributeNodeNS works for elementNS=http://www.w3.org/1998/Math/MathML, element=mrow, attrName=onmousedown (delete other attribute before)] - expected: FAIL - - [Element.setAttributeNodeNS works for elementNS=https://example.com/namespace, element=foo, attrName=onmouseup (delete other attribute before)] - expected: FAIL - - [Element.setAttributeNodeNS works for elementNS=http://www.w3.org/1999/xhtml, element=IFRAME, attrName=srcdoc (delete other attribute before)] - expected: FAIL - - [Element.setAttributeNodeNS works for elementNS=http://www.w3.org/1999/xhtml, element=SCRIPT, attrName=src (delete other attribute before)] - expected: FAIL - - [Element.setAttributeNodeNS works for elementNS=http://www.w3.org/2000/svg, element=script, attrName=href (delete other attribute before)] - expected: FAIL - - [Element.setAttributeNodeNS works for elementNS=http://www.w3.org/2000/svg, element=script, attrNS=http://www.w3.org/1999/xlink, attrName=href (delete other attribute before)] - expected: FAIL - - [NamedNodeMap.setNamedItem works for elementNS=http://www.w3.org/1999/xhtml, element=DIV, attrName=onclick (delete other attribute before)] - expected: FAIL - - [NamedNodeMap.setNamedItem works for elementNS=http://www.w3.org/2000/svg, element=g, attrName=ondblclick (delete other attribute before)] - expected: FAIL - - [NamedNodeMap.setNamedItem works for elementNS=http://www.w3.org/1998/Math/MathML, element=mrow, attrName=onmousedown (delete other attribute before)] - expected: FAIL - - [NamedNodeMap.setNamedItem works for elementNS=https://example.com/namespace, element=foo, attrName=onmouseup (delete other attribute before)] - expected: FAIL - - [NamedNodeMap.setNamedItem works for elementNS=http://www.w3.org/1999/xhtml, element=IFRAME, attrName=srcdoc (delete other attribute before)] - expected: FAIL - - [NamedNodeMap.setNamedItem works for elementNS=http://www.w3.org/1999/xhtml, element=SCRIPT, attrName=src (delete other attribute before)] - expected: FAIL - - [NamedNodeMap.setNamedItem works for elementNS=http://www.w3.org/2000/svg, element=script, attrName=href (delete other attribute before)] - expected: FAIL - - [NamedNodeMap.setNamedItem works for elementNS=http://www.w3.org/2000/svg, element=script, attrNS=http://www.w3.org/1999/xlink, attrName=href (delete other attribute before)] - expected: FAIL - - [NamedNodeMap.setNamedItemNS works for elementNS=http://www.w3.org/1999/xhtml, element=DIV, attrName=onclick (delete other attribute before)] - expected: FAIL - - [NamedNodeMap.setNamedItemNS works for elementNS=http://www.w3.org/2000/svg, element=g, attrName=ondblclick (delete other attribute before)] - expected: FAIL - - [NamedNodeMap.setNamedItemNS works for elementNS=http://www.w3.org/1998/Math/MathML, element=mrow, attrName=onmousedown (delete other attribute before)] - expected: FAIL - - [NamedNodeMap.setNamedItemNS works for elementNS=https://example.com/namespace, element=foo, attrName=onmouseup (delete other attribute before)] - expected: FAIL - - [NamedNodeMap.setNamedItemNS works for elementNS=http://www.w3.org/1999/xhtml, element=IFRAME, attrName=srcdoc (delete other attribute before)] - expected: FAIL - - [NamedNodeMap.setNamedItemNS works for elementNS=http://www.w3.org/1999/xhtml, element=SCRIPT, attrName=src (delete other attribute before)] - expected: FAIL - - [NamedNodeMap.setNamedItemNS works for elementNS=http://www.w3.org/2000/svg, element=script, attrName=href (delete other attribute before)] - expected: FAIL - - [NamedNodeMap.setNamedItemNS works for elementNS=http://www.w3.org/2000/svg, element=script, attrNS=http://www.w3.org/1999/xlink, attrName=href (delete other attribute before)] - expected: FAIL - - [Attr.value works for elementNS=http://www.w3.org/1999/xhtml, element=DIV, attrName=onclick (delete other attribute before)] - expected: FAIL - - [Attr.value works for elementNS=http://www.w3.org/2000/svg, element=g, attrName=ondblclick (delete other attribute before)] - expected: FAIL - - [Attr.value works for elementNS=http://www.w3.org/1998/Math/MathML, element=mrow, attrName=onmousedown (delete other attribute before)] - expected: FAIL - - [Attr.value works for elementNS=https://example.com/namespace, element=foo, attrName=onmouseup (delete other attribute before)] - expected: FAIL - - [Attr.value works for elementNS=http://www.w3.org/1999/xhtml, element=IFRAME, attrName=srcdoc (delete other attribute before)] - expected: FAIL - - [Attr.value works for elementNS=http://www.w3.org/1999/xhtml, element=SCRIPT, attrName=src (delete other attribute before)] - expected: FAIL - - [Attr.value works for elementNS=http://www.w3.org/2000/svg, element=script, attrName=href (delete other attribute before)] - expected: FAIL - - [Attr.value works for elementNS=http://www.w3.org/2000/svg, element=script, attrNS=http://www.w3.org/1999/xlink, attrName=href (delete other attribute before)] - expected: FAIL - - [Node.nodeValue works for elementNS=http://www.w3.org/1999/xhtml, element=DIV, attrName=onclick (delete other attribute before)] - expected: FAIL - - [Node.nodeValue works for elementNS=http://www.w3.org/2000/svg, element=g, attrName=ondblclick (delete other attribute before)] - expected: FAIL - - [Node.nodeValue works for elementNS=http://www.w3.org/1998/Math/MathML, element=mrow, attrName=onmousedown (delete other attribute before)] - expected: FAIL - - [Node.nodeValue works for elementNS=https://example.com/namespace, element=foo, attrName=onmouseup (delete other attribute before)] - expected: FAIL - - [Node.nodeValue works for elementNS=http://www.w3.org/1999/xhtml, element=IFRAME, attrName=srcdoc (delete other attribute before)] - expected: FAIL - - [Node.nodeValue works for elementNS=http://www.w3.org/1999/xhtml, element=SCRIPT, attrName=src (delete other attribute before)] - expected: FAIL - - [Node.nodeValue works for elementNS=http://www.w3.org/2000/svg, element=script, attrName=href (delete other attribute before)] - expected: FAIL - - [Node.nodeValue works for elementNS=http://www.w3.org/2000/svg, element=script, attrNS=http://www.w3.org/1999/xlink, attrName=href (delete other attribute before)] - expected: FAIL - - [Node.textContent works for elementNS=http://www.w3.org/1999/xhtml, element=DIV, attrName=onclick (delete other attribute before)] - expected: FAIL - - [Node.textContent works for elementNS=http://www.w3.org/2000/svg, element=g, attrName=ondblclick (delete other attribute before)] - expected: FAIL - - [Node.textContent works for elementNS=http://www.w3.org/1998/Math/MathML, element=mrow, attrName=onmousedown (delete other attribute before)] - expected: FAIL - - [Node.textContent works for elementNS=https://example.com/namespace, element=foo, attrName=onmouseup (delete other attribute before)] - expected: FAIL - - [Node.textContent works for elementNS=http://www.w3.org/1999/xhtml, element=IFRAME, attrName=srcdoc (delete other attribute before)] - expected: FAIL - - [Node.textContent works for elementNS=http://www.w3.org/1999/xhtml, element=SCRIPT, attrName=src (delete other attribute before)] - expected: FAIL - - [Node.textContent works for elementNS=http://www.w3.org/2000/svg, element=script, attrName=href (delete other attribute before)] - expected: FAIL - - [Node.textContent works for elementNS=http://www.w3.org/2000/svg, element=script, attrNS=http://www.w3.org/1999/xlink, attrName=href (delete other attribute before)] - expected: FAIL - - [Element.setAttributeNode works for elementNS=http://www.w3.org/1999/xhtml, element=DIV, attrName=onclick (delete attribute)] - expected: FAIL - - [Element.setAttributeNode works for elementNS=http://www.w3.org/2000/svg, element=g, attrName=ondblclick (delete attribute)] - expected: FAIL - - [Element.setAttributeNode works for elementNS=http://www.w3.org/1998/Math/MathML, element=mrow, attrName=onmousedown (delete attribute)] - expected: FAIL - - [Element.setAttributeNode works for elementNS=https://example.com/namespace, element=foo, attrName=onmouseup (delete attribute)] - expected: FAIL - - [Element.setAttributeNode works for elementNS=http://www.w3.org/1999/xhtml, element=IFRAME, attrName=srcdoc (delete attribute)] - expected: FAIL - - [Element.setAttributeNode works for elementNS=http://www.w3.org/1999/xhtml, element=SCRIPT, attrName=src (delete attribute)] - expected: FAIL - - [Element.setAttributeNode works for elementNS=http://www.w3.org/2000/svg, element=script, attrName=href (delete attribute)] - expected: FAIL - - [Element.setAttributeNode works for elementNS=http://www.w3.org/2000/svg, element=script, attrNS=http://www.w3.org/1999/xlink, attrName=href (delete attribute)] - expected: FAIL - - [Element.setAttributeNodeNS works for elementNS=http://www.w3.org/1999/xhtml, element=DIV, attrName=onclick (delete attribute)] - expected: FAIL - - [Element.setAttributeNodeNS works for elementNS=http://www.w3.org/2000/svg, element=g, attrName=ondblclick (delete attribute)] - expected: FAIL - - [Element.setAttributeNodeNS works for elementNS=http://www.w3.org/1998/Math/MathML, element=mrow, attrName=onmousedown (delete attribute)] - expected: FAIL - - [Element.setAttributeNodeNS works for elementNS=https://example.com/namespace, element=foo, attrName=onmouseup (delete attribute)] - expected: FAIL - - [Element.setAttributeNodeNS works for elementNS=http://www.w3.org/1999/xhtml, element=IFRAME, attrName=srcdoc (delete attribute)] - expected: FAIL - - [Element.setAttributeNodeNS works for elementNS=http://www.w3.org/1999/xhtml, element=SCRIPT, attrName=src (delete attribute)] - expected: FAIL - - [Element.setAttributeNodeNS works for elementNS=http://www.w3.org/2000/svg, element=script, attrName=href (delete attribute)] - expected: FAIL - - [Element.setAttributeNodeNS works for elementNS=http://www.w3.org/2000/svg, element=script, attrNS=http://www.w3.org/1999/xlink, attrName=href (delete attribute)] - expected: FAIL - - [NamedNodeMap.setNamedItem works for elementNS=http://www.w3.org/1999/xhtml, element=DIV, attrName=onclick (delete attribute)] - expected: FAIL - - [NamedNodeMap.setNamedItem works for elementNS=http://www.w3.org/2000/svg, element=g, attrName=ondblclick (delete attribute)] - expected: FAIL - - [NamedNodeMap.setNamedItem works for elementNS=http://www.w3.org/1998/Math/MathML, element=mrow, attrName=onmousedown (delete attribute)] - expected: FAIL - - [NamedNodeMap.setNamedItem works for elementNS=https://example.com/namespace, element=foo, attrName=onmouseup (delete attribute)] - expected: FAIL - - [NamedNodeMap.setNamedItem works for elementNS=http://www.w3.org/1999/xhtml, element=IFRAME, attrName=srcdoc (delete attribute)] - expected: FAIL - - [NamedNodeMap.setNamedItem works for elementNS=http://www.w3.org/1999/xhtml, element=SCRIPT, attrName=src (delete attribute)] - expected: FAIL - - [NamedNodeMap.setNamedItem works for elementNS=http://www.w3.org/2000/svg, element=script, attrName=href (delete attribute)] - expected: FAIL - - [NamedNodeMap.setNamedItem works for elementNS=http://www.w3.org/2000/svg, element=script, attrNS=http://www.w3.org/1999/xlink, attrName=href (delete attribute)] - expected: FAIL - - [NamedNodeMap.setNamedItemNS works for elementNS=http://www.w3.org/1999/xhtml, element=DIV, attrName=onclick (delete attribute)] - expected: FAIL - - [NamedNodeMap.setNamedItemNS works for elementNS=http://www.w3.org/2000/svg, element=g, attrName=ondblclick (delete attribute)] - expected: FAIL - - [NamedNodeMap.setNamedItemNS works for elementNS=http://www.w3.org/1998/Math/MathML, element=mrow, attrName=onmousedown (delete attribute)] - expected: FAIL - - [NamedNodeMap.setNamedItemNS works for elementNS=https://example.com/namespace, element=foo, attrName=onmouseup (delete attribute)] - expected: FAIL - - [NamedNodeMap.setNamedItemNS works for elementNS=http://www.w3.org/1999/xhtml, element=IFRAME, attrName=srcdoc (delete attribute)] - expected: FAIL - - [NamedNodeMap.setNamedItemNS works for elementNS=http://www.w3.org/1999/xhtml, element=SCRIPT, attrName=src (delete attribute)] - expected: FAIL - - [NamedNodeMap.setNamedItemNS works for elementNS=http://www.w3.org/2000/svg, element=script, attrName=href (delete attribute)] - expected: FAIL - - [NamedNodeMap.setNamedItemNS works for elementNS=http://www.w3.org/2000/svg, element=script, attrNS=http://www.w3.org/1999/xlink, attrName=href (delete attribute)] - expected: FAIL - - [Attr.value works for elementNS=http://www.w3.org/1999/xhtml, element=DIV, attrName=onclick (delete attribute)] - expected: FAIL - - [Attr.value works for elementNS=http://www.w3.org/2000/svg, element=g, attrName=ondblclick (delete attribute)] - expected: FAIL - - [Attr.value works for elementNS=http://www.w3.org/1998/Math/MathML, element=mrow, attrName=onmousedown (delete attribute)] - expected: FAIL - - [Attr.value works for elementNS=https://example.com/namespace, element=foo, attrName=onmouseup (delete attribute)] - expected: FAIL - - [Attr.value works for elementNS=http://www.w3.org/1999/xhtml, element=IFRAME, attrName=srcdoc (delete attribute)] - expected: FAIL - - [Attr.value works for elementNS=http://www.w3.org/1999/xhtml, element=SCRIPT, attrName=src (delete attribute)] - expected: FAIL - - [Attr.value works for elementNS=http://www.w3.org/2000/svg, element=script, attrName=href (delete attribute)] - expected: FAIL - - [Attr.value works for elementNS=http://www.w3.org/2000/svg, element=script, attrNS=http://www.w3.org/1999/xlink, attrName=href (delete attribute)] - expected: FAIL - - [Node.nodeValue works for elementNS=http://www.w3.org/1999/xhtml, element=DIV, attrName=onclick (delete attribute)] - expected: FAIL - - [Node.nodeValue works for elementNS=http://www.w3.org/2000/svg, element=g, attrName=ondblclick (delete attribute)] - expected: FAIL - - [Node.nodeValue works for elementNS=http://www.w3.org/1998/Math/MathML, element=mrow, attrName=onmousedown (delete attribute)] - expected: FAIL - - [Node.nodeValue works for elementNS=https://example.com/namespace, element=foo, attrName=onmouseup (delete attribute)] - expected: FAIL - - [Node.nodeValue works for elementNS=http://www.w3.org/1999/xhtml, element=IFRAME, attrName=srcdoc (delete attribute)] - expected: FAIL - - [Node.nodeValue works for elementNS=http://www.w3.org/1999/xhtml, element=SCRIPT, attrName=src (delete attribute)] - expected: FAIL - - [Node.nodeValue works for elementNS=http://www.w3.org/2000/svg, element=script, attrName=href (delete attribute)] - expected: FAIL - - [Node.nodeValue works for elementNS=http://www.w3.org/2000/svg, element=script, attrNS=http://www.w3.org/1999/xlink, attrName=href (delete attribute)] - expected: FAIL - - [Node.textContent works for elementNS=http://www.w3.org/1999/xhtml, element=DIV, attrName=onclick (delete attribute)] - expected: FAIL - - [Node.textContent works for elementNS=http://www.w3.org/2000/svg, element=g, attrName=ondblclick (delete attribute)] - expected: FAIL - - [Node.textContent works for elementNS=http://www.w3.org/1998/Math/MathML, element=mrow, attrName=onmousedown (delete attribute)] - expected: FAIL - - [Node.textContent works for elementNS=https://example.com/namespace, element=foo, attrName=onmouseup (delete attribute)] - expected: FAIL - - [Node.textContent works for elementNS=http://www.w3.org/1999/xhtml, element=IFRAME, attrName=srcdoc (delete attribute)] - expected: FAIL - - [Node.textContent works for elementNS=http://www.w3.org/1999/xhtml, element=SCRIPT, attrName=src (delete attribute)] - expected: FAIL - - [Node.textContent works for elementNS=http://www.w3.org/2000/svg, element=script, attrName=href (delete attribute)] - expected: FAIL - - [Node.textContent works for elementNS=http://www.w3.org/2000/svg, element=script, attrNS=http://www.w3.org/1999/xlink, attrName=href (delete attribute)] - expected: FAIL - - [Element.setAttributeNode works for elementNS=http://www.w3.org/1999/xhtml, element=DIV, attrName=onclick (modify attribute)] - expected: FAIL - - [Element.setAttributeNode works for elementNS=http://www.w3.org/2000/svg, element=g, attrName=ondblclick (modify attribute)] - expected: FAIL - - [Element.setAttributeNode works for elementNS=http://www.w3.org/1998/Math/MathML, element=mrow, attrName=onmousedown (modify attribute)] - expected: FAIL - - [Element.setAttributeNode works for elementNS=https://example.com/namespace, element=foo, attrName=onmouseup (modify attribute)] - expected: FAIL - - [Element.setAttributeNode works for elementNS=http://www.w3.org/1999/xhtml, element=IFRAME, attrName=srcdoc (modify attribute)] - expected: FAIL - - [Element.setAttributeNode works for elementNS=http://www.w3.org/1999/xhtml, element=SCRIPT, attrName=src (modify attribute)] - expected: FAIL - - [Element.setAttributeNode works for elementNS=http://www.w3.org/2000/svg, element=script, attrName=href (modify attribute)] - expected: FAIL - - [Element.setAttributeNode works for elementNS=http://www.w3.org/2000/svg, element=script, attrNS=http://www.w3.org/1999/xlink, attrName=href (modify attribute)] - expected: FAIL - - [Element.setAttributeNodeNS works for elementNS=http://www.w3.org/1999/xhtml, element=DIV, attrName=onclick (modify attribute)] - expected: FAIL - - [Element.setAttributeNodeNS works for elementNS=http://www.w3.org/2000/svg, element=g, attrName=ondblclick (modify attribute)] - expected: FAIL - - [Element.setAttributeNodeNS works for elementNS=http://www.w3.org/1998/Math/MathML, element=mrow, attrName=onmousedown (modify attribute)] - expected: FAIL - - [Element.setAttributeNodeNS works for elementNS=https://example.com/namespace, element=foo, attrName=onmouseup (modify attribute)] - expected: FAIL - - [Element.setAttributeNodeNS works for elementNS=http://www.w3.org/1999/xhtml, element=IFRAME, attrName=srcdoc (modify attribute)] - expected: FAIL - - [Element.setAttributeNodeNS works for elementNS=http://www.w3.org/1999/xhtml, element=SCRIPT, attrName=src (modify attribute)] - expected: FAIL - - [Element.setAttributeNodeNS works for elementNS=http://www.w3.org/2000/svg, element=script, attrName=href (modify attribute)] - expected: FAIL - - [Element.setAttributeNodeNS works for elementNS=http://www.w3.org/2000/svg, element=script, attrNS=http://www.w3.org/1999/xlink, attrName=href (modify attribute)] - expected: FAIL - - [NamedNodeMap.setNamedItem works for elementNS=http://www.w3.org/1999/xhtml, element=DIV, attrName=onclick (modify attribute)] - expected: FAIL - - [NamedNodeMap.setNamedItem works for elementNS=http://www.w3.org/2000/svg, element=g, attrName=ondblclick (modify attribute)] - expected: FAIL - - [NamedNodeMap.setNamedItem works for elementNS=http://www.w3.org/1998/Math/MathML, element=mrow, attrName=onmousedown (modify attribute)] - expected: FAIL - - [NamedNodeMap.setNamedItem works for elementNS=https://example.com/namespace, element=foo, attrName=onmouseup (modify attribute)] - expected: FAIL - - [NamedNodeMap.setNamedItem works for elementNS=http://www.w3.org/1999/xhtml, element=IFRAME, attrName=srcdoc (modify attribute)] - expected: FAIL - - [NamedNodeMap.setNamedItem works for elementNS=http://www.w3.org/1999/xhtml, element=SCRIPT, attrName=src (modify attribute)] - expected: FAIL - - [NamedNodeMap.setNamedItem works for elementNS=http://www.w3.org/2000/svg, element=script, attrName=href (modify attribute)] - expected: FAIL - - [NamedNodeMap.setNamedItem works for elementNS=http://www.w3.org/2000/svg, element=script, attrNS=http://www.w3.org/1999/xlink, attrName=href (modify attribute)] - expected: FAIL - - [NamedNodeMap.setNamedItemNS works for elementNS=http://www.w3.org/1999/xhtml, element=DIV, attrName=onclick (modify attribute)] - expected: FAIL - - [NamedNodeMap.setNamedItemNS works for elementNS=http://www.w3.org/2000/svg, element=g, attrName=ondblclick (modify attribute)] - expected: FAIL - - [NamedNodeMap.setNamedItemNS works for elementNS=http://www.w3.org/1998/Math/MathML, element=mrow, attrName=onmousedown (modify attribute)] - expected: FAIL - - [NamedNodeMap.setNamedItemNS works for elementNS=https://example.com/namespace, element=foo, attrName=onmouseup (modify attribute)] - expected: FAIL - - [NamedNodeMap.setNamedItemNS works for elementNS=http://www.w3.org/1999/xhtml, element=IFRAME, attrName=srcdoc (modify attribute)] - expected: FAIL - - [NamedNodeMap.setNamedItemNS works for elementNS=http://www.w3.org/1999/xhtml, element=SCRIPT, attrName=src (modify attribute)] - expected: FAIL - - [NamedNodeMap.setNamedItemNS works for elementNS=http://www.w3.org/2000/svg, element=script, attrName=href (modify attribute)] - expected: FAIL - - [NamedNodeMap.setNamedItemNS works for elementNS=http://www.w3.org/2000/svg, element=script, attrNS=http://www.w3.org/1999/xlink, attrName=href (modify attribute)] - expected: FAIL - - [Attr.value works for elementNS=http://www.w3.org/1999/xhtml, element=DIV, attrName=onclick (modify attribute)] - expected: FAIL - - [Attr.value works for elementNS=http://www.w3.org/2000/svg, element=g, attrName=ondblclick (modify attribute)] - expected: FAIL - - [Attr.value works for elementNS=http://www.w3.org/1998/Math/MathML, element=mrow, attrName=onmousedown (modify attribute)] - expected: FAIL - - [Attr.value works for elementNS=https://example.com/namespace, element=foo, attrName=onmouseup (modify attribute)] - expected: FAIL - - [Attr.value works for elementNS=http://www.w3.org/1999/xhtml, element=IFRAME, attrName=srcdoc (modify attribute)] - expected: FAIL - - [Attr.value works for elementNS=http://www.w3.org/1999/xhtml, element=SCRIPT, attrName=src (modify attribute)] - expected: FAIL - - [Attr.value works for elementNS=http://www.w3.org/2000/svg, element=script, attrName=href (modify attribute)] - expected: FAIL - - [Attr.value works for elementNS=http://www.w3.org/2000/svg, element=script, attrNS=http://www.w3.org/1999/xlink, attrName=href (modify attribute)] - expected: FAIL - - [Node.nodeValue works for elementNS=http://www.w3.org/1999/xhtml, element=DIV, attrName=onclick (modify attribute)] - expected: FAIL - - [Node.nodeValue works for elementNS=http://www.w3.org/2000/svg, element=g, attrName=ondblclick (modify attribute)] - expected: FAIL - - [Node.nodeValue works for elementNS=http://www.w3.org/1998/Math/MathML, element=mrow, attrName=onmousedown (modify attribute)] - expected: FAIL - - [Node.nodeValue works for elementNS=https://example.com/namespace, element=foo, attrName=onmouseup (modify attribute)] - expected: FAIL - - [Node.nodeValue works for elementNS=http://www.w3.org/1999/xhtml, element=IFRAME, attrName=srcdoc (modify attribute)] - expected: FAIL - - [Node.nodeValue works for elementNS=http://www.w3.org/1999/xhtml, element=SCRIPT, attrName=src (modify attribute)] - expected: FAIL - - [Node.nodeValue works for elementNS=http://www.w3.org/2000/svg, element=script, attrName=href (modify attribute)] - expected: FAIL - - [Node.nodeValue works for elementNS=http://www.w3.org/2000/svg, element=script, attrNS=http://www.w3.org/1999/xlink, attrName=href (modify attribute)] - expected: FAIL - - [Node.textContent works for elementNS=http://www.w3.org/1999/xhtml, element=DIV, attrName=onclick (modify attribute)] - expected: FAIL - - [Node.textContent works for elementNS=http://www.w3.org/2000/svg, element=g, attrName=ondblclick (modify attribute)] - expected: FAIL - - [Node.textContent works for elementNS=http://www.w3.org/1998/Math/MathML, element=mrow, attrName=onmousedown (modify attribute)] - expected: FAIL - - [Node.textContent works for elementNS=https://example.com/namespace, element=foo, attrName=onmouseup (modify attribute)] - expected: FAIL - - [Node.textContent works for elementNS=http://www.w3.org/1999/xhtml, element=IFRAME, attrName=srcdoc (modify attribute)] - expected: FAIL - - [Node.textContent works for elementNS=http://www.w3.org/1999/xhtml, element=SCRIPT, attrName=src (modify attribute)] - expected: FAIL - - [Node.textContent works for elementNS=http://www.w3.org/2000/svg, element=script, attrName=href (modify attribute)] - expected: FAIL - - [Node.textContent works for elementNS=http://www.w3.org/2000/svg, element=script, attrNS=http://www.w3.org/1999/xlink, attrName=href (modify attribute)] - expected: FAIL - - [Element.setAttribute works for elementNS=http://www.w3.org/1999/xhtml, element=DIV, attrName=onclick (move attribute node to another element)] - expected: FAIL - - [Element.setAttribute works for elementNS=http://www.w3.org/2000/svg, element=g, attrName=ondblclick (move attribute node to another element)] - expected: FAIL - - [Element.setAttribute works for elementNS=http://www.w3.org/1998/Math/MathML, element=mrow, attrName=onmousedown (move attribute node to another element)] - expected: FAIL - - [Element.setAttribute works for elementNS=https://example.com/namespace, element=foo, attrName=onmouseup (move attribute node to another element)] - expected: FAIL - - [Element.setAttribute works for elementNS=http://www.w3.org/1999/xhtml, element=IFRAME, attrName=srcdoc (move attribute node to another element)] - expected: FAIL - - [Element.setAttribute works for elementNS=http://www.w3.org/1999/xhtml, element=SCRIPT, attrName=src (move attribute node to another element)] - expected: FAIL - - [Element.setAttribute works for elementNS=http://www.w3.org/2000/svg, element=script, attrName=href (move attribute node to another element)] - expected: FAIL - - [Element.setAttributeNS works for elementNS=http://www.w3.org/1999/xhtml, element=DIV, attrName=onclick (move attribute node to another element)] - expected: FAIL - - [Element.setAttributeNS works for elementNS=http://www.w3.org/2000/svg, element=g, attrName=ondblclick (move attribute node to another element)] - expected: FAIL - - [Element.setAttributeNS works for elementNS=http://www.w3.org/1998/Math/MathML, element=mrow, attrName=onmousedown (move attribute node to another element)] - expected: FAIL - - [Element.setAttributeNS works for elementNS=https://example.com/namespace, element=foo, attrName=onmouseup (move attribute node to another element)] - expected: FAIL - - [Element.setAttributeNS works for elementNS=http://www.w3.org/1999/xhtml, element=IFRAME, attrName=srcdoc (move attribute node to another element)] - expected: FAIL - - [Element.setAttributeNS works for elementNS=http://www.w3.org/1999/xhtml, element=SCRIPT, attrName=src (move attribute node to another element)] - expected: FAIL - - [Element.setAttributeNS works for elementNS=http://www.w3.org/2000/svg, element=script, attrName=href (move attribute node to another element)] - expected: FAIL - - [Element.setAttributeNS works for elementNS=http://www.w3.org/2000/svg, element=script, attrNS=http://www.w3.org/1999/xlink, attrName=href (move attribute node to another element)] - expected: FAIL - - [Element.setAttributeNode works for elementNS=http://www.w3.org/1999/xhtml, element=DIV, attrName=onclick (move attribute node to another element)] - expected: FAIL - - [Element.setAttributeNode works for elementNS=http://www.w3.org/2000/svg, element=g, attrName=ondblclick (move attribute node to another element)] - expected: FAIL - - [Element.setAttributeNode works for elementNS=http://www.w3.org/1998/Math/MathML, element=mrow, attrName=onmousedown (move attribute node to another element)] - expected: FAIL - - [Element.setAttributeNode works for elementNS=https://example.com/namespace, element=foo, attrName=onmouseup (move attribute node to another element)] - expected: FAIL - - [Element.setAttributeNode works for elementNS=http://www.w3.org/1999/xhtml, element=IFRAME, attrName=srcdoc (move attribute node to another element)] - expected: FAIL - - [Element.setAttributeNode works for elementNS=http://www.w3.org/1999/xhtml, element=SCRIPT, attrName=src (move attribute node to another element)] - expected: FAIL - - [Element.setAttributeNode works for elementNS=http://www.w3.org/2000/svg, element=script, attrName=href (move attribute node to another element)] - expected: FAIL - - [Element.setAttributeNode works for elementNS=http://www.w3.org/2000/svg, element=script, attrNS=http://www.w3.org/1999/xlink, attrName=href (move attribute node to another element)] - expected: FAIL - - [Element.setAttributeNodeNS works for elementNS=http://www.w3.org/1999/xhtml, element=DIV, attrName=onclick (move attribute node to another element)] - expected: FAIL - - [Element.setAttributeNodeNS works for elementNS=http://www.w3.org/2000/svg, element=g, attrName=ondblclick (move attribute node to another element)] - expected: FAIL - - [Element.setAttributeNodeNS works for elementNS=http://www.w3.org/1998/Math/MathML, element=mrow, attrName=onmousedown (move attribute node to another element)] - expected: FAIL - - [Element.setAttributeNodeNS works for elementNS=https://example.com/namespace, element=foo, attrName=onmouseup (move attribute node to another element)] - expected: FAIL - - [Element.setAttributeNodeNS works for elementNS=http://www.w3.org/1999/xhtml, element=IFRAME, attrName=srcdoc (move attribute node to another element)] - expected: FAIL - - [Element.setAttributeNodeNS works for elementNS=http://www.w3.org/1999/xhtml, element=SCRIPT, attrName=src (move attribute node to another element)] - expected: FAIL - - [Element.setAttributeNodeNS works for elementNS=http://www.w3.org/2000/svg, element=script, attrName=href (move attribute node to another element)] - expected: FAIL - - [Element.setAttributeNodeNS works for elementNS=http://www.w3.org/2000/svg, element=script, attrNS=http://www.w3.org/1999/xlink, attrName=href (move attribute node to another element)] - expected: FAIL - - [NamedNodeMap.setNamedItem works for elementNS=http://www.w3.org/1999/xhtml, element=DIV, attrName=onclick (move attribute node to another element)] - expected: FAIL - - [NamedNodeMap.setNamedItem works for elementNS=http://www.w3.org/2000/svg, element=g, attrName=ondblclick (move attribute node to another element)] - expected: FAIL - - [NamedNodeMap.setNamedItem works for elementNS=http://www.w3.org/1998/Math/MathML, element=mrow, attrName=onmousedown (move attribute node to another element)] - expected: FAIL - - [NamedNodeMap.setNamedItem works for elementNS=https://example.com/namespace, element=foo, attrName=onmouseup (move attribute node to another element)] - expected: FAIL - - [NamedNodeMap.setNamedItem works for elementNS=http://www.w3.org/1999/xhtml, element=IFRAME, attrName=srcdoc (move attribute node to another element)] - expected: FAIL - - [NamedNodeMap.setNamedItem works for elementNS=http://www.w3.org/1999/xhtml, element=SCRIPT, attrName=src (move attribute node to another element)] - expected: FAIL - - [NamedNodeMap.setNamedItem works for elementNS=http://www.w3.org/2000/svg, element=script, attrName=href (move attribute node to another element)] - expected: FAIL - - [NamedNodeMap.setNamedItem works for elementNS=http://www.w3.org/2000/svg, element=script, attrNS=http://www.w3.org/1999/xlink, attrName=href (move attribute node to another element)] - expected: FAIL - - [NamedNodeMap.setNamedItemNS works for elementNS=http://www.w3.org/1999/xhtml, element=DIV, attrName=onclick (move attribute node to another element)] - expected: FAIL - - [NamedNodeMap.setNamedItemNS works for elementNS=http://www.w3.org/2000/svg, element=g, attrName=ondblclick (move attribute node to another element)] - expected: FAIL - - [NamedNodeMap.setNamedItemNS works for elementNS=http://www.w3.org/1998/Math/MathML, element=mrow, attrName=onmousedown (move attribute node to another element)] - expected: FAIL - - [NamedNodeMap.setNamedItemNS works for elementNS=https://example.com/namespace, element=foo, attrName=onmouseup (move attribute node to another element)] - expected: FAIL - - [NamedNodeMap.setNamedItemNS works for elementNS=http://www.w3.org/1999/xhtml, element=IFRAME, attrName=srcdoc (move attribute node to another element)] - expected: FAIL - - [NamedNodeMap.setNamedItemNS works for elementNS=http://www.w3.org/1999/xhtml, element=SCRIPT, attrName=src (move attribute node to another element)] - expected: FAIL - - [NamedNodeMap.setNamedItemNS works for elementNS=http://www.w3.org/2000/svg, element=script, attrName=href (move attribute node to another element)] - expected: FAIL - - [NamedNodeMap.setNamedItemNS works for elementNS=http://www.w3.org/2000/svg, element=script, attrNS=http://www.w3.org/1999/xlink, attrName=href (move attribute node to another element)] - expected: FAIL - - [Attr.value works for elementNS=http://www.w3.org/1999/xhtml, element=DIV, attrName=onclick (move attribute node to another element)] - expected: FAIL - - [Attr.value works for elementNS=http://www.w3.org/2000/svg, element=g, attrName=ondblclick (move attribute node to another element)] - expected: FAIL - - [Attr.value works for elementNS=http://www.w3.org/1998/Math/MathML, element=mrow, attrName=onmousedown (move attribute node to another element)] - expected: FAIL - - [Attr.value works for elementNS=https://example.com/namespace, element=foo, attrName=onmouseup (move attribute node to another element)] - expected: FAIL - - [Attr.value works for elementNS=http://www.w3.org/1999/xhtml, element=IFRAME, attrName=srcdoc (move attribute node to another element)] - expected: FAIL - - [Attr.value works for elementNS=http://www.w3.org/1999/xhtml, element=SCRIPT, attrName=src (move attribute node to another element)] - expected: FAIL - - [Attr.value works for elementNS=http://www.w3.org/2000/svg, element=script, attrName=href (move attribute node to another element)] - expected: FAIL - - [Attr.value works for elementNS=http://www.w3.org/2000/svg, element=script, attrNS=http://www.w3.org/1999/xlink, attrName=href (move attribute node to another element)] - expected: FAIL - - [Node.nodeValue works for elementNS=http://www.w3.org/1999/xhtml, element=DIV, attrName=onclick (move attribute node to another element)] - expected: FAIL - - [Node.nodeValue works for elementNS=http://www.w3.org/2000/svg, element=g, attrName=ondblclick (move attribute node to another element)] - expected: FAIL - - [Node.nodeValue works for elementNS=http://www.w3.org/1998/Math/MathML, element=mrow, attrName=onmousedown (move attribute node to another element)] - expected: FAIL - - [Node.nodeValue works for elementNS=https://example.com/namespace, element=foo, attrName=onmouseup (move attribute node to another element)] - expected: FAIL - - [Node.nodeValue works for elementNS=http://www.w3.org/1999/xhtml, element=IFRAME, attrName=srcdoc (move attribute node to another element)] - expected: FAIL - - [Node.nodeValue works for elementNS=http://www.w3.org/1999/xhtml, element=SCRIPT, attrName=src (move attribute node to another element)] - expected: FAIL - - [Node.nodeValue works for elementNS=http://www.w3.org/2000/svg, element=script, attrName=href (move attribute node to another element)] - expected: FAIL - - [Node.nodeValue works for elementNS=http://www.w3.org/2000/svg, element=script, attrNS=http://www.w3.org/1999/xlink, attrName=href (move attribute node to another element)] - expected: FAIL - - [Node.textContent works for elementNS=http://www.w3.org/1999/xhtml, element=DIV, attrName=onclick (move attribute node to another element)] - expected: FAIL - - [Node.textContent works for elementNS=http://www.w3.org/2000/svg, element=g, attrName=ondblclick (move attribute node to another element)] - expected: FAIL - - [Node.textContent works for elementNS=http://www.w3.org/1998/Math/MathML, element=mrow, attrName=onmousedown (move attribute node to another element)] - expected: FAIL - - [Node.textContent works for elementNS=https://example.com/namespace, element=foo, attrName=onmouseup (move attribute node to another element)] - expected: FAIL - - [Node.textContent works for elementNS=http://www.w3.org/1999/xhtml, element=IFRAME, attrName=srcdoc (move attribute node to another element)] - expected: FAIL - - [Node.textContent works for elementNS=http://www.w3.org/1999/xhtml, element=SCRIPT, attrName=src (move attribute node to another element)] - expected: FAIL - - [Node.textContent works for elementNS=http://www.w3.org/2000/svg, element=script, attrName=href (move attribute node to another element)] - expected: FAIL - - [Node.textContent works for elementNS=http://www.w3.org/2000/svg, element=script, attrNS=http://www.w3.org/1999/xlink, attrName=href (move attribute node to another element)] - expected: FAIL diff --git a/testing/web-platform/meta/trusted-types/set-attributes-require-trusted-types-default-policy.html.ini b/testing/web-platform/meta/trusted-types/set-attributes-require-trusted-types-default-policy.html.ini deleted file mode 100644 index 0cc07c770f20..000000000000 --- a/testing/web-platform/meta/trusted-types/set-attributes-require-trusted-types-default-policy.html.ini +++ /dev/null @@ -1,336 +0,0 @@ -[set-attributes-require-trusted-types-default-policy.html] - [Element.setAttributeNode applies default policy for elementNS=http://www.w3.org/1999/xhtml, element=DIV, attrName=onclick] - expected: FAIL - - [Element.setAttributeNode applies default policy for elementNS=http://www.w3.org/2000/svg, element=g, attrName=ondblclick] - expected: FAIL - - [Element.setAttributeNode applies default policy for elementNS=http://www.w3.org/1998/Math/MathML, element=mrow, attrName=onmousedown] - expected: FAIL - - [Element.setAttributeNode applies default policy for elementNS=https://example.com/namespace, element=foo, attrName=onmouseup] - expected: FAIL - - [Element.setAttributeNode applies default policy for elementNS=http://www.w3.org/1999/xhtml, element=IFRAME, attrName=srcdoc] - expected: FAIL - - [Element.setAttributeNode applies default policy for elementNS=http://www.w3.org/1999/xhtml, element=SCRIPT, attrName=src] - expected: FAIL - - [Element.setAttributeNode applies default policy for elementNS=http://www.w3.org/2000/svg, element=script, attrName=href] - expected: FAIL - - [Element.setAttributeNode applies default policy for elementNS=http://www.w3.org/2000/svg, element=script, attrNS=http://www.w3.org/1999/xlink, attrName=href] - expected: FAIL - - [Element.setAttributeNodeNS applies default policy for elementNS=http://www.w3.org/1999/xhtml, element=DIV, attrName=onclick] - expected: FAIL - - [Element.setAttributeNodeNS applies default policy for elementNS=http://www.w3.org/2000/svg, element=g, attrName=ondblclick] - expected: FAIL - - [Element.setAttributeNodeNS applies default policy for elementNS=http://www.w3.org/1998/Math/MathML, element=mrow, attrName=onmousedown] - expected: FAIL - - [Element.setAttributeNodeNS applies default policy for elementNS=https://example.com/namespace, element=foo, attrName=onmouseup] - expected: FAIL - - [Element.setAttributeNodeNS applies default policy for elementNS=http://www.w3.org/1999/xhtml, element=IFRAME, attrName=srcdoc] - expected: FAIL - - [Element.setAttributeNodeNS applies default policy for elementNS=http://www.w3.org/1999/xhtml, element=SCRIPT, attrName=src] - expected: FAIL - - [Element.setAttributeNodeNS applies default policy for elementNS=http://www.w3.org/2000/svg, element=script, attrName=href] - expected: FAIL - - [Element.setAttributeNodeNS applies default policy for elementNS=http://www.w3.org/2000/svg, element=script, attrNS=http://www.w3.org/1999/xlink, attrName=href] - expected: FAIL - - [NamedNodeMap.setNamedItem applies default policy for elementNS=http://www.w3.org/1999/xhtml, element=DIV, attrName=onclick] - expected: FAIL - - [NamedNodeMap.setNamedItem applies default policy for elementNS=http://www.w3.org/2000/svg, element=g, attrName=ondblclick] - expected: FAIL - - [NamedNodeMap.setNamedItem applies default policy for elementNS=http://www.w3.org/1998/Math/MathML, element=mrow, attrName=onmousedown] - expected: FAIL - - [NamedNodeMap.setNamedItem applies default policy for elementNS=https://example.com/namespace, element=foo, attrName=onmouseup] - expected: FAIL - - [NamedNodeMap.setNamedItem applies default policy for elementNS=http://www.w3.org/1999/xhtml, element=IFRAME, attrName=srcdoc] - expected: FAIL - - [NamedNodeMap.setNamedItem applies default policy for elementNS=http://www.w3.org/1999/xhtml, element=SCRIPT, attrName=src] - expected: FAIL - - [NamedNodeMap.setNamedItem applies default policy for elementNS=http://www.w3.org/2000/svg, element=script, attrName=href] - expected: FAIL - - [NamedNodeMap.setNamedItem applies default policy for elementNS=http://www.w3.org/2000/svg, element=script, attrNS=http://www.w3.org/1999/xlink, attrName=href] - expected: FAIL - - [NamedNodeMap.setNamedItemNS applies default policy for elementNS=http://www.w3.org/1999/xhtml, element=DIV, attrName=onclick] - expected: FAIL - - [NamedNodeMap.setNamedItemNS applies default policy for elementNS=http://www.w3.org/2000/svg, element=g, attrName=ondblclick] - expected: FAIL - - [NamedNodeMap.setNamedItemNS applies default policy for elementNS=http://www.w3.org/1998/Math/MathML, element=mrow, attrName=onmousedown] - expected: FAIL - - [NamedNodeMap.setNamedItemNS applies default policy for elementNS=https://example.com/namespace, element=foo, attrName=onmouseup] - expected: FAIL - - [NamedNodeMap.setNamedItemNS applies default policy for elementNS=http://www.w3.org/1999/xhtml, element=IFRAME, attrName=srcdoc] - expected: FAIL - - [NamedNodeMap.setNamedItemNS applies default policy for elementNS=http://www.w3.org/1999/xhtml, element=SCRIPT, attrName=src] - expected: FAIL - - [NamedNodeMap.setNamedItemNS applies default policy for elementNS=http://www.w3.org/2000/svg, element=script, attrName=href] - expected: FAIL - - [NamedNodeMap.setNamedItemNS applies default policy for elementNS=http://www.w3.org/2000/svg, element=script, attrNS=http://www.w3.org/1999/xlink, attrName=href] - expected: FAIL - - [Attr.value applies default policy for elementNS=http://www.w3.org/1999/xhtml, element=DIV, attrName=onclick] - expected: FAIL - - [Attr.value applies default policy for elementNS=http://www.w3.org/2000/svg, element=g, attrName=ondblclick] - expected: FAIL - - [Attr.value applies default policy for elementNS=http://www.w3.org/1998/Math/MathML, element=mrow, attrName=onmousedown] - expected: FAIL - - [Attr.value applies default policy for elementNS=https://example.com/namespace, element=foo, attrName=onmouseup] - expected: FAIL - - [Attr.value applies default policy for elementNS=http://www.w3.org/1999/xhtml, element=IFRAME, attrName=srcdoc] - expected: FAIL - - [Attr.value applies default policy for elementNS=http://www.w3.org/1999/xhtml, element=SCRIPT, attrName=src] - expected: FAIL - - [Attr.value applies default policy for elementNS=http://www.w3.org/2000/svg, element=script, attrName=href] - expected: FAIL - - [Attr.value applies default policy for elementNS=http://www.w3.org/2000/svg, element=script, attrNS=http://www.w3.org/1999/xlink, attrName=href] - expected: FAIL - - [Node.nodeValue applies default policy for elementNS=http://www.w3.org/1999/xhtml, element=DIV, attrName=onclick] - expected: FAIL - - [Node.nodeValue applies default policy for elementNS=http://www.w3.org/2000/svg, element=g, attrName=ondblclick] - expected: FAIL - - [Node.nodeValue applies default policy for elementNS=http://www.w3.org/1998/Math/MathML, element=mrow, attrName=onmousedown] - expected: FAIL - - [Node.nodeValue applies default policy for elementNS=https://example.com/namespace, element=foo, attrName=onmouseup] - expected: FAIL - - [Node.nodeValue applies default policy for elementNS=http://www.w3.org/1999/xhtml, element=IFRAME, attrName=srcdoc] - expected: FAIL - - [Node.nodeValue applies default policy for elementNS=http://www.w3.org/1999/xhtml, element=SCRIPT, attrName=src] - expected: FAIL - - [Node.nodeValue applies default policy for elementNS=http://www.w3.org/2000/svg, element=script, attrName=href] - expected: FAIL - - [Node.nodeValue applies default policy for elementNS=http://www.w3.org/2000/svg, element=script, attrNS=http://www.w3.org/1999/xlink, attrName=href] - expected: FAIL - - [Node.textContent applies default policy for elementNS=http://www.w3.org/1999/xhtml, element=DIV, attrName=onclick] - expected: FAIL - - [Node.textContent applies default policy for elementNS=http://www.w3.org/2000/svg, element=g, attrName=ondblclick] - expected: FAIL - - [Node.textContent applies default policy for elementNS=http://www.w3.org/1998/Math/MathML, element=mrow, attrName=onmousedown] - expected: FAIL - - [Node.textContent applies default policy for elementNS=https://example.com/namespace, element=foo, attrName=onmouseup] - expected: FAIL - - [Node.textContent applies default policy for elementNS=http://www.w3.org/1999/xhtml, element=IFRAME, attrName=srcdoc] - expected: FAIL - - [Node.textContent applies default policy for elementNS=http://www.w3.org/1999/xhtml, element=SCRIPT, attrName=src] - expected: FAIL - - [Node.textContent applies default policy for elementNS=http://www.w3.org/2000/svg, element=script, attrName=href] - expected: FAIL - - [Node.textContent applies default policy for elementNS=http://www.w3.org/2000/svg, element=script, attrNS=http://www.w3.org/1999/xlink, attrName=href] - expected: FAIL - - [Element.setAttributeNode applies default policy for elementNS=http://www.w3.org/1999/xhtml, element=DIV, attrName=onclick and a TrustedScript input.] - expected: FAIL - - [Element.setAttributeNode applies default policy for elementNS=http://www.w3.org/2000/svg, element=g, attrName=ondblclick and a TrustedScript input.] - expected: FAIL - - [Element.setAttributeNode applies default policy for elementNS=http://www.w3.org/1998/Math/MathML, element=mrow, attrName=onmousedown and a TrustedScript input.] - expected: FAIL - - [Element.setAttributeNode applies default policy for elementNS=https://example.com/namespace, element=foo, attrName=onmouseup and a TrustedScript input.] - expected: FAIL - - [Element.setAttributeNode applies default policy for elementNS=http://www.w3.org/1999/xhtml, element=IFRAME, attrName=srcdoc and a TrustedHTML input.] - expected: FAIL - - [Element.setAttributeNode applies default policy for elementNS=http://www.w3.org/1999/xhtml, element=SCRIPT, attrName=src and a TrustedScriptURL input.] - expected: FAIL - - [Element.setAttributeNode applies default policy for elementNS=http://www.w3.org/2000/svg, element=script, attrName=href and a TrustedScriptURL input.] - expected: FAIL - - [Element.setAttributeNode applies default policy for elementNS=http://www.w3.org/2000/svg, element=script, attrNS=http://www.w3.org/1999/xlink, attrName=href and a TrustedScriptURL input.] - expected: FAIL - - [Element.setAttributeNodeNS applies default policy for elementNS=http://www.w3.org/1999/xhtml, element=DIV, attrName=onclick and a TrustedScript input.] - expected: FAIL - - [Element.setAttributeNodeNS applies default policy for elementNS=http://www.w3.org/2000/svg, element=g, attrName=ondblclick and a TrustedScript input.] - expected: FAIL - - [Element.setAttributeNodeNS applies default policy for elementNS=http://www.w3.org/1998/Math/MathML, element=mrow, attrName=onmousedown and a TrustedScript input.] - expected: FAIL - - [Element.setAttributeNodeNS applies default policy for elementNS=https://example.com/namespace, element=foo, attrName=onmouseup and a TrustedScript input.] - expected: FAIL - - [Element.setAttributeNodeNS applies default policy for elementNS=http://www.w3.org/1999/xhtml, element=IFRAME, attrName=srcdoc and a TrustedHTML input.] - expected: FAIL - - [Element.setAttributeNodeNS applies default policy for elementNS=http://www.w3.org/1999/xhtml, element=SCRIPT, attrName=src and a TrustedScriptURL input.] - expected: FAIL - - [Element.setAttributeNodeNS applies default policy for elementNS=http://www.w3.org/2000/svg, element=script, attrName=href and a TrustedScriptURL input.] - expected: FAIL - - [Element.setAttributeNodeNS applies default policy for elementNS=http://www.w3.org/2000/svg, element=script, attrNS=http://www.w3.org/1999/xlink, attrName=href and a TrustedScriptURL input.] - expected: FAIL - - [NamedNodeMap.setNamedItem applies default policy for elementNS=http://www.w3.org/1999/xhtml, element=DIV, attrName=onclick and a TrustedScript input.] - expected: FAIL - - [NamedNodeMap.setNamedItem applies default policy for elementNS=http://www.w3.org/2000/svg, element=g, attrName=ondblclick and a TrustedScript input.] - expected: FAIL - - [NamedNodeMap.setNamedItem applies default policy for elementNS=http://www.w3.org/1998/Math/MathML, element=mrow, attrName=onmousedown and a TrustedScript input.] - expected: FAIL - - [NamedNodeMap.setNamedItem applies default policy for elementNS=https://example.com/namespace, element=foo, attrName=onmouseup and a TrustedScript input.] - expected: FAIL - - [NamedNodeMap.setNamedItem applies default policy for elementNS=http://www.w3.org/1999/xhtml, element=IFRAME, attrName=srcdoc and a TrustedHTML input.] - expected: FAIL - - [NamedNodeMap.setNamedItem applies default policy for elementNS=http://www.w3.org/1999/xhtml, element=SCRIPT, attrName=src and a TrustedScriptURL input.] - expected: FAIL - - [NamedNodeMap.setNamedItem applies default policy for elementNS=http://www.w3.org/2000/svg, element=script, attrName=href and a TrustedScriptURL input.] - expected: FAIL - - [NamedNodeMap.setNamedItem applies default policy for elementNS=http://www.w3.org/2000/svg, element=script, attrNS=http://www.w3.org/1999/xlink, attrName=href and a TrustedScriptURL input.] - expected: FAIL - - [NamedNodeMap.setNamedItemNS applies default policy for elementNS=http://www.w3.org/1999/xhtml, element=DIV, attrName=onclick and a TrustedScript input.] - expected: FAIL - - [NamedNodeMap.setNamedItemNS applies default policy for elementNS=http://www.w3.org/2000/svg, element=g, attrName=ondblclick and a TrustedScript input.] - expected: FAIL - - [NamedNodeMap.setNamedItemNS applies default policy for elementNS=http://www.w3.org/1998/Math/MathML, element=mrow, attrName=onmousedown and a TrustedScript input.] - expected: FAIL - - [NamedNodeMap.setNamedItemNS applies default policy for elementNS=https://example.com/namespace, element=foo, attrName=onmouseup and a TrustedScript input.] - expected: FAIL - - [NamedNodeMap.setNamedItemNS applies default policy for elementNS=http://www.w3.org/1999/xhtml, element=IFRAME, attrName=srcdoc and a TrustedHTML input.] - expected: FAIL - - [NamedNodeMap.setNamedItemNS applies default policy for elementNS=http://www.w3.org/1999/xhtml, element=SCRIPT, attrName=src and a TrustedScriptURL input.] - expected: FAIL - - [NamedNodeMap.setNamedItemNS applies default policy for elementNS=http://www.w3.org/2000/svg, element=script, attrName=href and a TrustedScriptURL input.] - expected: FAIL - - [NamedNodeMap.setNamedItemNS applies default policy for elementNS=http://www.w3.org/2000/svg, element=script, attrNS=http://www.w3.org/1999/xlink, attrName=href and a TrustedScriptURL input.] - expected: FAIL - - [Attr.value applies default policy for elementNS=http://www.w3.org/1999/xhtml, element=DIV, attrName=onclick and a TrustedScript input.] - expected: FAIL - - [Attr.value applies default policy for elementNS=http://www.w3.org/2000/svg, element=g, attrName=ondblclick and a TrustedScript input.] - expected: FAIL - - [Attr.value applies default policy for elementNS=http://www.w3.org/1998/Math/MathML, element=mrow, attrName=onmousedown and a TrustedScript input.] - expected: FAIL - - [Attr.value applies default policy for elementNS=https://example.com/namespace, element=foo, attrName=onmouseup and a TrustedScript input.] - expected: FAIL - - [Attr.value applies default policy for elementNS=http://www.w3.org/1999/xhtml, element=IFRAME, attrName=srcdoc and a TrustedHTML input.] - expected: FAIL - - [Attr.value applies default policy for elementNS=http://www.w3.org/1999/xhtml, element=SCRIPT, attrName=src and a TrustedScriptURL input.] - expected: FAIL - - [Attr.value applies default policy for elementNS=http://www.w3.org/2000/svg, element=script, attrName=href and a TrustedScriptURL input.] - expected: FAIL - - [Attr.value applies default policy for elementNS=http://www.w3.org/2000/svg, element=script, attrNS=http://www.w3.org/1999/xlink, attrName=href and a TrustedScriptURL input.] - expected: FAIL - - [Node.nodeValue applies default policy for elementNS=http://www.w3.org/1999/xhtml, element=DIV, attrName=onclick and a TrustedScript input.] - expected: FAIL - - [Node.nodeValue applies default policy for elementNS=http://www.w3.org/2000/svg, element=g, attrName=ondblclick and a TrustedScript input.] - expected: FAIL - - [Node.nodeValue applies default policy for elementNS=http://www.w3.org/1998/Math/MathML, element=mrow, attrName=onmousedown and a TrustedScript input.] - expected: FAIL - - [Node.nodeValue applies default policy for elementNS=https://example.com/namespace, element=foo, attrName=onmouseup and a TrustedScript input.] - expected: FAIL - - [Node.nodeValue applies default policy for elementNS=http://www.w3.org/1999/xhtml, element=IFRAME, attrName=srcdoc and a TrustedHTML input.] - expected: FAIL - - [Node.nodeValue applies default policy for elementNS=http://www.w3.org/1999/xhtml, element=SCRIPT, attrName=src and a TrustedScriptURL input.] - expected: FAIL - - [Node.nodeValue applies default policy for elementNS=http://www.w3.org/2000/svg, element=script, attrName=href and a TrustedScriptURL input.] - expected: FAIL - - [Node.nodeValue applies default policy for elementNS=http://www.w3.org/2000/svg, element=script, attrNS=http://www.w3.org/1999/xlink, attrName=href and a TrustedScriptURL input.] - expected: FAIL - - [Node.textContent applies default policy for elementNS=http://www.w3.org/1999/xhtml, element=DIV, attrName=onclick and a TrustedScript input.] - expected: FAIL - - [Node.textContent applies default policy for elementNS=http://www.w3.org/2000/svg, element=g, attrName=ondblclick and a TrustedScript input.] - expected: FAIL - - [Node.textContent applies default policy for elementNS=http://www.w3.org/1998/Math/MathML, element=mrow, attrName=onmousedown and a TrustedScript input.] - expected: FAIL - - [Node.textContent applies default policy for elementNS=https://example.com/namespace, element=foo, attrName=onmouseup and a TrustedScript input.] - expected: FAIL - - [Node.textContent applies default policy for elementNS=http://www.w3.org/1999/xhtml, element=IFRAME, attrName=srcdoc and a TrustedHTML input.] - expected: FAIL - - [Node.textContent applies default policy for elementNS=http://www.w3.org/1999/xhtml, element=SCRIPT, attrName=src and a TrustedScriptURL input.] - expected: FAIL - - [Node.textContent applies default policy for elementNS=http://www.w3.org/2000/svg, element=script, attrName=href and a TrustedScriptURL input.] - expected: FAIL - - [Node.textContent applies default policy for elementNS=http://www.w3.org/2000/svg, element=script, attrNS=http://www.w3.org/1999/xlink, attrName=href and a TrustedScriptURL input.] - expected: FAIL diff --git a/testing/web-platform/meta/trusted-types/set-attributes-require-trusted-types-no-default-policy.html.ini b/testing/web-platform/meta/trusted-types/set-attributes-require-trusted-types-no-default-policy.html.ini deleted file mode 100644 index 3b29b938e4f8..000000000000 --- a/testing/web-platform/meta/trusted-types/set-attributes-require-trusted-types-no-default-policy.html.ini +++ /dev/null @@ -1,336 +0,0 @@ -[set-attributes-require-trusted-types-no-default-policy.html] - [Element.setAttributeNode throws for elementNS=http://www.w3.org/1999/xhtml, element=DIV, attrName=onclick with a plain string] - expected: FAIL - - [Element.setAttributeNode throws for elementNS=http://www.w3.org/2000/svg, element=g, attrName=ondblclick with a plain string] - expected: FAIL - - [Element.setAttributeNode throws for elementNS=http://www.w3.org/1998/Math/MathML, element=mrow, attrName=onmousedown with a plain string] - expected: FAIL - - [Element.setAttributeNode throws for elementNS=https://example.com/namespace, element=foo, attrName=onmouseup with a plain string] - expected: FAIL - - [Element.setAttributeNode throws for elementNS=http://www.w3.org/1999/xhtml, element=IFRAME, attrName=srcdoc with a plain string] - expected: FAIL - - [Element.setAttributeNode throws for elementNS=http://www.w3.org/1999/xhtml, element=SCRIPT, attrName=src with a plain string] - expected: FAIL - - [Element.setAttributeNode throws for elementNS=http://www.w3.org/2000/svg, element=script, attrName=href with a plain string] - expected: FAIL - - [Element.setAttributeNode throws for elementNS=http://www.w3.org/2000/svg, element=script, attrNS=http://www.w3.org/1999/xlink, attrName=href with a plain string] - expected: FAIL - - [Element.setAttributeNodeNS throws for elementNS=http://www.w3.org/1999/xhtml, element=DIV, attrName=onclick with a plain string] - expected: FAIL - - [Element.setAttributeNodeNS throws for elementNS=http://www.w3.org/2000/svg, element=g, attrName=ondblclick with a plain string] - expected: FAIL - - [Element.setAttributeNodeNS throws for elementNS=http://www.w3.org/1998/Math/MathML, element=mrow, attrName=onmousedown with a plain string] - expected: FAIL - - [Element.setAttributeNodeNS throws for elementNS=https://example.com/namespace, element=foo, attrName=onmouseup with a plain string] - expected: FAIL - - [Element.setAttributeNodeNS throws for elementNS=http://www.w3.org/1999/xhtml, element=IFRAME, attrName=srcdoc with a plain string] - expected: FAIL - - [Element.setAttributeNodeNS throws for elementNS=http://www.w3.org/1999/xhtml, element=SCRIPT, attrName=src with a plain string] - expected: FAIL - - [Element.setAttributeNodeNS throws for elementNS=http://www.w3.org/2000/svg, element=script, attrName=href with a plain string] - expected: FAIL - - [Element.setAttributeNodeNS throws for elementNS=http://www.w3.org/2000/svg, element=script, attrNS=http://www.w3.org/1999/xlink, attrName=href with a plain string] - expected: FAIL - - [NamedNodeMap.setNamedItem throws for elementNS=http://www.w3.org/1999/xhtml, element=DIV, attrName=onclick with a plain string] - expected: FAIL - - [NamedNodeMap.setNamedItem throws for elementNS=http://www.w3.org/2000/svg, element=g, attrName=ondblclick with a plain string] - expected: FAIL - - [NamedNodeMap.setNamedItem throws for elementNS=http://www.w3.org/1998/Math/MathML, element=mrow, attrName=onmousedown with a plain string] - expected: FAIL - - [NamedNodeMap.setNamedItem throws for elementNS=https://example.com/namespace, element=foo, attrName=onmouseup with a plain string] - expected: FAIL - - [NamedNodeMap.setNamedItem throws for elementNS=http://www.w3.org/1999/xhtml, element=IFRAME, attrName=srcdoc with a plain string] - expected: FAIL - - [NamedNodeMap.setNamedItem throws for elementNS=http://www.w3.org/1999/xhtml, element=SCRIPT, attrName=src with a plain string] - expected: FAIL - - [NamedNodeMap.setNamedItem throws for elementNS=http://www.w3.org/2000/svg, element=script, attrName=href with a plain string] - expected: FAIL - - [NamedNodeMap.setNamedItem throws for elementNS=http://www.w3.org/2000/svg, element=script, attrNS=http://www.w3.org/1999/xlink, attrName=href with a plain string] - expected: FAIL - - [NamedNodeMap.setNamedItemNS throws for elementNS=http://www.w3.org/1999/xhtml, element=DIV, attrName=onclick with a plain string] - expected: FAIL - - [NamedNodeMap.setNamedItemNS throws for elementNS=http://www.w3.org/2000/svg, element=g, attrName=ondblclick with a plain string] - expected: FAIL - - [NamedNodeMap.setNamedItemNS throws for elementNS=http://www.w3.org/1998/Math/MathML, element=mrow, attrName=onmousedown with a plain string] - expected: FAIL - - [NamedNodeMap.setNamedItemNS throws for elementNS=https://example.com/namespace, element=foo, attrName=onmouseup with a plain string] - expected: FAIL - - [NamedNodeMap.setNamedItemNS throws for elementNS=http://www.w3.org/1999/xhtml, element=IFRAME, attrName=srcdoc with a plain string] - expected: FAIL - - [NamedNodeMap.setNamedItemNS throws for elementNS=http://www.w3.org/1999/xhtml, element=SCRIPT, attrName=src with a plain string] - expected: FAIL - - [NamedNodeMap.setNamedItemNS throws for elementNS=http://www.w3.org/2000/svg, element=script, attrName=href with a plain string] - expected: FAIL - - [NamedNodeMap.setNamedItemNS throws for elementNS=http://www.w3.org/2000/svg, element=script, attrNS=http://www.w3.org/1999/xlink, attrName=href with a plain string] - expected: FAIL - - [Attr.value throws for elementNS=http://www.w3.org/1999/xhtml, element=DIV, attrName=onclick with a plain string] - expected: FAIL - - [Attr.value throws for elementNS=http://www.w3.org/2000/svg, element=g, attrName=ondblclick with a plain string] - expected: FAIL - - [Attr.value throws for elementNS=http://www.w3.org/1998/Math/MathML, element=mrow, attrName=onmousedown with a plain string] - expected: FAIL - - [Attr.value throws for elementNS=https://example.com/namespace, element=foo, attrName=onmouseup with a plain string] - expected: FAIL - - [Attr.value throws for elementNS=http://www.w3.org/1999/xhtml, element=IFRAME, attrName=srcdoc with a plain string] - expected: FAIL - - [Attr.value throws for elementNS=http://www.w3.org/1999/xhtml, element=SCRIPT, attrName=src with a plain string] - expected: FAIL - - [Attr.value throws for elementNS=http://www.w3.org/2000/svg, element=script, attrName=href with a plain string] - expected: FAIL - - [Attr.value throws for elementNS=http://www.w3.org/2000/svg, element=script, attrNS=http://www.w3.org/1999/xlink, attrName=href with a plain string] - expected: FAIL - - [Node.nodeValue throws for elementNS=http://www.w3.org/1999/xhtml, element=DIV, attrName=onclick with a plain string] - expected: FAIL - - [Node.nodeValue throws for elementNS=http://www.w3.org/2000/svg, element=g, attrName=ondblclick with a plain string] - expected: FAIL - - [Node.nodeValue throws for elementNS=http://www.w3.org/1998/Math/MathML, element=mrow, attrName=onmousedown with a plain string] - expected: FAIL - - [Node.nodeValue throws for elementNS=https://example.com/namespace, element=foo, attrName=onmouseup with a plain string] - expected: FAIL - - [Node.nodeValue throws for elementNS=http://www.w3.org/1999/xhtml, element=IFRAME, attrName=srcdoc with a plain string] - expected: FAIL - - [Node.nodeValue throws for elementNS=http://www.w3.org/1999/xhtml, element=SCRIPT, attrName=src with a plain string] - expected: FAIL - - [Node.nodeValue throws for elementNS=http://www.w3.org/2000/svg, element=script, attrName=href with a plain string] - expected: FAIL - - [Node.nodeValue throws for elementNS=http://www.w3.org/2000/svg, element=script, attrNS=http://www.w3.org/1999/xlink, attrName=href with a plain string] - expected: FAIL - - [Node.textContent throws for elementNS=http://www.w3.org/1999/xhtml, element=DIV, attrName=onclick with a plain string] - expected: FAIL - - [Node.textContent throws for elementNS=http://www.w3.org/2000/svg, element=g, attrName=ondblclick with a plain string] - expected: FAIL - - [Node.textContent throws for elementNS=http://www.w3.org/1998/Math/MathML, element=mrow, attrName=onmousedown with a plain string] - expected: FAIL - - [Node.textContent throws for elementNS=https://example.com/namespace, element=foo, attrName=onmouseup with a plain string] - expected: FAIL - - [Node.textContent throws for elementNS=http://www.w3.org/1999/xhtml, element=IFRAME, attrName=srcdoc with a plain string] - expected: FAIL - - [Node.textContent throws for elementNS=http://www.w3.org/1999/xhtml, element=SCRIPT, attrName=src with a plain string] - expected: FAIL - - [Node.textContent throws for elementNS=http://www.w3.org/2000/svg, element=script, attrName=href with a plain string] - expected: FAIL - - [Node.textContent throws for elementNS=http://www.w3.org/2000/svg, element=script, attrNS=http://www.w3.org/1999/xlink, attrName=href with a plain string] - expected: FAIL - - [Element.setAttributeNode throws for elementNS=http://www.w3.org/1999/xhtml, element=DIV, attrName=onclick with a TrustedScript input.] - expected: FAIL - - [Element.setAttributeNode throws for elementNS=http://www.w3.org/2000/svg, element=g, attrName=ondblclick with a TrustedScript input.] - expected: FAIL - - [Element.setAttributeNode throws for elementNS=http://www.w3.org/1998/Math/MathML, element=mrow, attrName=onmousedown with a TrustedScript input.] - expected: FAIL - - [Element.setAttributeNode throws for elementNS=https://example.com/namespace, element=foo, attrName=onmouseup with a TrustedScript input.] - expected: FAIL - - [Element.setAttributeNode throws for elementNS=http://www.w3.org/1999/xhtml, element=IFRAME, attrName=srcdoc with a TrustedHTML input.] - expected: FAIL - - [Element.setAttributeNode throws for elementNS=http://www.w3.org/1999/xhtml, element=SCRIPT, attrName=src with a TrustedScriptURL input.] - expected: FAIL - - [Element.setAttributeNode throws for elementNS=http://www.w3.org/2000/svg, element=script, attrName=href with a TrustedScriptURL input.] - expected: FAIL - - [Element.setAttributeNode throws for elementNS=http://www.w3.org/2000/svg, element=script, attrNS=http://www.w3.org/1999/xlink, attrName=href with a TrustedScriptURL input.] - expected: FAIL - - [Element.setAttributeNodeNS throws for elementNS=http://www.w3.org/1999/xhtml, element=DIV, attrName=onclick with a TrustedScript input.] - expected: FAIL - - [Element.setAttributeNodeNS throws for elementNS=http://www.w3.org/2000/svg, element=g, attrName=ondblclick with a TrustedScript input.] - expected: FAIL - - [Element.setAttributeNodeNS throws for elementNS=http://www.w3.org/1998/Math/MathML, element=mrow, attrName=onmousedown with a TrustedScript input.] - expected: FAIL - - [Element.setAttributeNodeNS throws for elementNS=https://example.com/namespace, element=foo, attrName=onmouseup with a TrustedScript input.] - expected: FAIL - - [Element.setAttributeNodeNS throws for elementNS=http://www.w3.org/1999/xhtml, element=IFRAME, attrName=srcdoc with a TrustedHTML input.] - expected: FAIL - - [Element.setAttributeNodeNS throws for elementNS=http://www.w3.org/1999/xhtml, element=SCRIPT, attrName=src with a TrustedScriptURL input.] - expected: FAIL - - [Element.setAttributeNodeNS throws for elementNS=http://www.w3.org/2000/svg, element=script, attrName=href with a TrustedScriptURL input.] - expected: FAIL - - [Element.setAttributeNodeNS throws for elementNS=http://www.w3.org/2000/svg, element=script, attrNS=http://www.w3.org/1999/xlink, attrName=href with a TrustedScriptURL input.] - expected: FAIL - - [NamedNodeMap.setNamedItem throws for elementNS=http://www.w3.org/1999/xhtml, element=DIV, attrName=onclick with a TrustedScript input.] - expected: FAIL - - [NamedNodeMap.setNamedItem throws for elementNS=http://www.w3.org/2000/svg, element=g, attrName=ondblclick with a TrustedScript input.] - expected: FAIL - - [NamedNodeMap.setNamedItem throws for elementNS=http://www.w3.org/1998/Math/MathML, element=mrow, attrName=onmousedown with a TrustedScript input.] - expected: FAIL - - [NamedNodeMap.setNamedItem throws for elementNS=https://example.com/namespace, element=foo, attrName=onmouseup with a TrustedScript input.] - expected: FAIL - - [NamedNodeMap.setNamedItem throws for elementNS=http://www.w3.org/1999/xhtml, element=IFRAME, attrName=srcdoc with a TrustedHTML input.] - expected: FAIL - - [NamedNodeMap.setNamedItem throws for elementNS=http://www.w3.org/1999/xhtml, element=SCRIPT, attrName=src with a TrustedScriptURL input.] - expected: FAIL - - [NamedNodeMap.setNamedItem throws for elementNS=http://www.w3.org/2000/svg, element=script, attrName=href with a TrustedScriptURL input.] - expected: FAIL - - [NamedNodeMap.setNamedItem throws for elementNS=http://www.w3.org/2000/svg, element=script, attrNS=http://www.w3.org/1999/xlink, attrName=href with a TrustedScriptURL input.] - expected: FAIL - - [NamedNodeMap.setNamedItemNS throws for elementNS=http://www.w3.org/1999/xhtml, element=DIV, attrName=onclick with a TrustedScript input.] - expected: FAIL - - [NamedNodeMap.setNamedItemNS throws for elementNS=http://www.w3.org/2000/svg, element=g, attrName=ondblclick with a TrustedScript input.] - expected: FAIL - - [NamedNodeMap.setNamedItemNS throws for elementNS=http://www.w3.org/1998/Math/MathML, element=mrow, attrName=onmousedown with a TrustedScript input.] - expected: FAIL - - [NamedNodeMap.setNamedItemNS throws for elementNS=https://example.com/namespace, element=foo, attrName=onmouseup with a TrustedScript input.] - expected: FAIL - - [NamedNodeMap.setNamedItemNS throws for elementNS=http://www.w3.org/1999/xhtml, element=IFRAME, attrName=srcdoc with a TrustedHTML input.] - expected: FAIL - - [NamedNodeMap.setNamedItemNS throws for elementNS=http://www.w3.org/1999/xhtml, element=SCRIPT, attrName=src with a TrustedScriptURL input.] - expected: FAIL - - [NamedNodeMap.setNamedItemNS throws for elementNS=http://www.w3.org/2000/svg, element=script, attrName=href with a TrustedScriptURL input.] - expected: FAIL - - [NamedNodeMap.setNamedItemNS throws for elementNS=http://www.w3.org/2000/svg, element=script, attrNS=http://www.w3.org/1999/xlink, attrName=href with a TrustedScriptURL input.] - expected: FAIL - - [Attr.value throws for elementNS=http://www.w3.org/1999/xhtml, element=DIV, attrName=onclick with a TrustedScript input.] - expected: FAIL - - [Attr.value throws for elementNS=http://www.w3.org/2000/svg, element=g, attrName=ondblclick with a TrustedScript input.] - expected: FAIL - - [Attr.value throws for elementNS=http://www.w3.org/1998/Math/MathML, element=mrow, attrName=onmousedown with a TrustedScript input.] - expected: FAIL - - [Attr.value throws for elementNS=https://example.com/namespace, element=foo, attrName=onmouseup with a TrustedScript input.] - expected: FAIL - - [Attr.value throws for elementNS=http://www.w3.org/1999/xhtml, element=IFRAME, attrName=srcdoc with a TrustedHTML input.] - expected: FAIL - - [Attr.value throws for elementNS=http://www.w3.org/1999/xhtml, element=SCRIPT, attrName=src with a TrustedScriptURL input.] - expected: FAIL - - [Attr.value throws for elementNS=http://www.w3.org/2000/svg, element=script, attrName=href with a TrustedScriptURL input.] - expected: FAIL - - [Attr.value throws for elementNS=http://www.w3.org/2000/svg, element=script, attrNS=http://www.w3.org/1999/xlink, attrName=href with a TrustedScriptURL input.] - expected: FAIL - - [Node.nodeValue throws for elementNS=http://www.w3.org/1999/xhtml, element=DIV, attrName=onclick with a TrustedScript input.] - expected: FAIL - - [Node.nodeValue throws for elementNS=http://www.w3.org/2000/svg, element=g, attrName=ondblclick with a TrustedScript input.] - expected: FAIL - - [Node.nodeValue throws for elementNS=http://www.w3.org/1998/Math/MathML, element=mrow, attrName=onmousedown with a TrustedScript input.] - expected: FAIL - - [Node.nodeValue throws for elementNS=https://example.com/namespace, element=foo, attrName=onmouseup with a TrustedScript input.] - expected: FAIL - - [Node.nodeValue throws for elementNS=http://www.w3.org/1999/xhtml, element=IFRAME, attrName=srcdoc with a TrustedHTML input.] - expected: FAIL - - [Node.nodeValue throws for elementNS=http://www.w3.org/1999/xhtml, element=SCRIPT, attrName=src with a TrustedScriptURL input.] - expected: FAIL - - [Node.nodeValue throws for elementNS=http://www.w3.org/2000/svg, element=script, attrName=href with a TrustedScriptURL input.] - expected: FAIL - - [Node.nodeValue throws for elementNS=http://www.w3.org/2000/svg, element=script, attrNS=http://www.w3.org/1999/xlink, attrName=href with a TrustedScriptURL input.] - expected: FAIL - - [Node.textContent throws for elementNS=http://www.w3.org/1999/xhtml, element=DIV, attrName=onclick with a TrustedScript input.] - expected: FAIL - - [Node.textContent throws for elementNS=http://www.w3.org/2000/svg, element=g, attrName=ondblclick with a TrustedScript input.] - expected: FAIL - - [Node.textContent throws for elementNS=http://www.w3.org/1998/Math/MathML, element=mrow, attrName=onmousedown with a TrustedScript input.] - expected: FAIL - - [Node.textContent throws for elementNS=https://example.com/namespace, element=foo, attrName=onmouseup with a TrustedScript input.] - expected: FAIL - - [Node.textContent throws for elementNS=http://www.w3.org/1999/xhtml, element=IFRAME, attrName=srcdoc with a TrustedHTML input.] - expected: FAIL - - [Node.textContent throws for elementNS=http://www.w3.org/1999/xhtml, element=SCRIPT, attrName=src with a TrustedScriptURL input.] - expected: FAIL - - [Node.textContent throws for elementNS=http://www.w3.org/2000/svg, element=script, attrName=href with a TrustedScriptURL input.] - expected: FAIL - - [Node.textContent throws for elementNS=http://www.w3.org/2000/svg, element=script, attrNS=http://www.w3.org/1999/xlink, attrName=href with a TrustedScriptURL input.] - expected: FAIL