Bug 1944511 Implement remaining Trusted Type support for attribute changes. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D236107
This commit is contained in:
@@ -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> element = GetElement();
|
||||
if (!element) {
|
||||
mValue = aValue;
|
||||
return;
|
||||
}
|
||||
|
||||
RefPtr<nsAtom> nameAtom = mNodeInfo->NameAtom();
|
||||
|
||||
Maybe<nsAutoString> 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<nsAtom> 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) {
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -1604,7 +1604,8 @@ Attr* Element::GetAttributeNode(const nsAString& aName) {
|
||||
|
||||
already_AddRefed<Attr> Element::SetAttributeNode(Attr& aNewAttr,
|
||||
ErrorResult& aError) {
|
||||
return Attributes()->SetNamedItemNS(aNewAttr, aError);
|
||||
RefPtr<nsDOMAttributeMap> attrMap = Attributes();
|
||||
return attrMap->SetNamedItemNS(aNewAttr, aError);
|
||||
}
|
||||
|
||||
already_AddRefed<Attr> Element::RemoveAttributeNode(Attr& aAttribute,
|
||||
@@ -1795,7 +1796,8 @@ Attr* Element::GetAttributeNodeNSInternal(const nsAString& aNamespaceURI,
|
||||
|
||||
already_AddRefed<Attr> Element::SetAttributeNodeNS(Attr& aNewAttr,
|
||||
ErrorResult& aError) {
|
||||
return Attributes()->SetNamedItemNS(aNewAttr, aError);
|
||||
RefPtr<nsDOMAttributeMap> attrMap = Attributes();
|
||||
return attrMap->SetNamedItemNS(aNewAttr, aError);
|
||||
}
|
||||
|
||||
already_AddRefed<nsIHTMLCollection> Element::GetElementsByTagNameNS(
|
||||
|
||||
@@ -1429,13 +1429,14 @@ class Element : public FragmentOrElement {
|
||||
already_AddRefed<Promise> RequestFullscreen(CallerType, ErrorResult&);
|
||||
void RequestPointerLock(CallerType aCallerType);
|
||||
Attr* GetAttributeNode(const nsAString& aName);
|
||||
already_AddRefed<Attr> SetAttributeNode(Attr& aNewAttr, ErrorResult& aError);
|
||||
MOZ_CAN_RUN_SCRIPT already_AddRefed<Attr> SetAttributeNode(
|
||||
Attr& aNewAttr, ErrorResult& aError);
|
||||
already_AddRefed<Attr> RemoveAttributeNode(Attr& aOldAttr,
|
||||
ErrorResult& aError);
|
||||
Attr* GetAttributeNodeNS(const nsAString& aNamespaceURI,
|
||||
const nsAString& aLocalName);
|
||||
already_AddRefed<Attr> SetAttributeNodeNS(Attr& aNewAttr,
|
||||
ErrorResult& aError);
|
||||
MOZ_CAN_RUN_SCRIPT already_AddRefed<Attr> SetAttributeNodeNS(
|
||||
Attr& aNewAttr, ErrorResult& aError);
|
||||
|
||||
MOZ_CAN_RUN_SCRIPT already_AddRefed<DOMRectList> GetClientRects();
|
||||
MOZ_CAN_RUN_SCRIPT already_AddRefed<DOMRect> GetBoundingClientRect();
|
||||
|
||||
@@ -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<Attr> nsDOMAttributeMap::SetNamedItemNS(Attr& aAttr,
|
||||
return attribute.forget();
|
||||
}
|
||||
|
||||
nsAutoString value;
|
||||
aAttr.GetValue(value);
|
||||
|
||||
RefPtr<NodeInfo> ni = aAttr.NodeInfo();
|
||||
|
||||
Maybe<nsAutoString> compliantStringHolder;
|
||||
RefPtr<nsAtom> nameAtom = ni->NameAtom();
|
||||
nsCOMPtr<Element> 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<void*> adoptedNode =
|
||||
@@ -243,11 +267,6 @@ already_AddRefed<Attr> nsDOMAttributeMap::SetNamedItemNS(Attr& aAttr,
|
||||
}
|
||||
}
|
||||
|
||||
nsAutoString value;
|
||||
aAttr.GetValue(value);
|
||||
|
||||
RefPtr<NodeInfo> 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<Attr> 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);
|
||||
|
||||
@@ -147,7 +147,8 @@ class nsDOMAttributeMap final : public nsISupports, public nsWrapperCache {
|
||||
|
||||
Attr* GetNamedItemNS(const nsAString& aNamespaceURI,
|
||||
const nsAString& aLocalName);
|
||||
already_AddRefed<Attr> SetNamedItemNS(Attr& aNode, ErrorResult& aError);
|
||||
MOZ_CAN_RUN_SCRIPT already_AddRefed<Attr> SetNamedItemNS(Attr& aNode,
|
||||
ErrorResult& aError);
|
||||
already_AddRefed<Attr> RemoveNamedItemNS(const nsAString& aNamespaceURI,
|
||||
const nsAString& aLocalName,
|
||||
ErrorResult& aError);
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -205,14 +205,14 @@ void HTMLScriptElement::SetInnerText(
|
||||
nsGenericHTMLElement::SetInnerText(*compliantString);
|
||||
}
|
||||
|
||||
void HTMLScriptElement::GetTextContent(
|
||||
void HTMLScriptElement::GetTrustedScriptOrStringTextContent(
|
||||
Nullable<OwningTrustedScriptOrString>& aTextContent,
|
||||
mozilla::OOMReporter& aError) {
|
||||
FragmentOrElement::GetTextContentInternal(
|
||||
aTextContent.SetValue().SetAsString(), aError);
|
||||
}
|
||||
|
||||
void HTMLScriptElement::SetTextContent(
|
||||
void HTMLScriptElement::SetTrustedScriptOrStringTextContent(
|
||||
const Nullable<TrustedScriptOrString>& aTextContent,
|
||||
nsIPrincipal* aSubjectPrincipal, mozilla::ErrorResult& aError) {
|
||||
constexpr nsLiteralString sink = u"HTMLScriptElement textContent"_ns;
|
||||
@@ -220,7 +220,7 @@ void HTMLScriptElement::SetTextContent(
|
||||
if (aTextContent.IsNull()) {
|
||||
Nullable<TrustedScriptOrString> 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<TrustedScriptOrString>& aTextContent,
|
||||
mozilla::ErrorResult& aError) {
|
||||
SetTextContent(aTextContent, nullptr, aError);
|
||||
}
|
||||
|
||||
void HTMLScriptElement::GetSrc(OwningTrustedScriptURLOrString& aSrc) {
|
||||
GetURIAttr(nsGkAtoms::src, nullptr, aSrc.SetAsString());
|
||||
}
|
||||
|
||||
@@ -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<OwningTrustedScriptOrString>& aTextContent,
|
||||
mozilla::OOMReporter& aError);
|
||||
|
||||
MOZ_CAN_RUN_SCRIPT void SetTextContent(
|
||||
MOZ_CAN_RUN_SCRIPT void SetTrustedScriptOrStringTextContent(
|
||||
const Nullable<TrustedScriptOrString>& aTextContent,
|
||||
nsIPrincipal* aSubjectPrincipal, mozilla::ErrorResult& aError);
|
||||
MOZ_CAN_RUN_SCRIPT void SetTextContent(
|
||||
const Nullable<TrustedScriptOrString>& aTextContent,
|
||||
mozilla::ErrorResult& aError);
|
||||
|
||||
void GetCharset(nsAString& aCharset) {
|
||||
GetHTMLAttr(nsGkAtoms::charset, aCharset);
|
||||
|
||||
@@ -641,10 +641,10 @@ bool GetTrustedTypeDataForAttribute(const nsAtom* aElementName,
|
||||
return false;
|
||||
}
|
||||
|
||||
template <typename TrustedTypeOrStringArg>
|
||||
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<nsAutoString>& 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<TrustedTypeOrStringArg, const nsAString*>));
|
||||
}
|
||||
|
||||
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<nsAutoString>& 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<nsAutoString>& aResultHolder, ErrorResult& aError) {
|
||||
return GetTrustedTypesCompliantAttributeValue<const nsAString*>(
|
||||
aElement, aAttributeName, aAttributeNamespaceID, &aNewValue,
|
||||
aResultHolder, aError);
|
||||
}
|
||||
|
||||
bool HostGetCodeForEval(JSContext* aCx, JS::Handle<JSObject*> aCode,
|
||||
JS::MutableHandle<JSString*> aOutCode) {
|
||||
JS::Rooted<JSObject*> obj(aCx, aCode);
|
||||
|
||||
@@ -136,6 +136,10 @@ MOZ_CAN_RUN_SCRIPT const nsAString* GetTrustedTypesCompliantAttributeValue(
|
||||
int32_t aAttributeNamespaceID,
|
||||
const TrustedHTMLOrTrustedScriptOrTrustedScriptURLOrString& aNewValue,
|
||||
Maybe<nsAutoString>& aResultHolder, ErrorResult& aError);
|
||||
MOZ_CAN_RUN_SCRIPT const nsAString* GetTrustedTypesCompliantAttributeValue(
|
||||
const nsINode& aElement, nsAtom* aAttributeName,
|
||||
int32_t aAttributeNamespaceID, const nsAString& aNewValue,
|
||||
Maybe<nsAutoString>& aResultHolder, ErrorResult& aError);
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/webappapis.html#hostgetcodeforeval(argument)
|
||||
bool HostGetCodeForEval(JSContext* aCx, JS::Handle<JSObject*> aCode,
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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]
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
[block-string-assignment-to-Element-setAttribute.html]
|
||||
[`script.src = setAttributeNode(embed.src)` with string works.]
|
||||
expected: FAIL
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user