From abe09769ddf71cb23a9bb156ca6158a9abbf97d9 Mon Sep 17 00:00:00 2001 From: Aryeh Gregor Date: Fri, 25 Apr 2014 13:29:56 +0300 Subject: [PATCH] Bug 957430 - Stop pretending Attr.specified is deprecated; r=ehsan --- content/base/public/nsDeprecatedOperationList.h | 1 - content/base/src/Attr.cpp | 1 - dom/locales/en-US/chrome/dom/dom.properties | 1 - dom/webidl/Attr.webidl | 5 ++--- webapprt/locales/en-US/webapprt/overrides/dom.properties | 1 - 5 files changed, 2 insertions(+), 7 deletions(-) diff --git a/content/base/public/nsDeprecatedOperationList.h b/content/base/public/nsDeprecatedOperationList.h index 79a8d31388c9..37e8440afae5 100644 --- a/content/base/public/nsDeprecatedOperationList.h +++ b/content/base/public/nsDeprecatedOperationList.h @@ -15,7 +15,6 @@ DEPRECATED_OPERATION(SetAttributeNodeNS) DEPRECATED_OPERATION(RemoveAttributeNode) DEPRECATED_OPERATION(CreateAttribute) DEPRECATED_OPERATION(CreateAttributeNS) -DEPRECATED_OPERATION(Specified) DEPRECATED_OPERATION(OwnerElement) DEPRECATED_OPERATION(NodeValue) DEPRECATED_OPERATION(TextContent) diff --git a/content/base/src/Attr.cpp b/content/base/src/Attr.cpp index fe4795d84cc1..e402550d93a9 100644 --- a/content/base/src/Attr.cpp +++ b/content/base/src/Attr.cpp @@ -226,7 +226,6 @@ Attr::SetValue(const nsAString& aValue) bool Attr::Specified() const { - OwnerDoc()->WarnOnceAbout(nsIDocument::eSpecified); return true; } diff --git a/dom/locales/en-US/chrome/dom/dom.properties b/dom/locales/en-US/chrome/dom/dom.properties index 5aa823406a24..e9ff829dcdf2 100644 --- a/dom/locales/en-US/chrome/dom/dom.properties +++ b/dom/locales/en-US/chrome/dom/dom.properties @@ -49,7 +49,6 @@ SetAttributeNodeNSWarning=Use of setAttributeNodeNS() is deprecated. Use setAttr RemoveAttributeNodeWarning=Use of removeAttributeNode() is deprecated. Use removeAttribute() instead. CreateAttributeWarning=Use of document.createAttribute() is deprecated. Use element.setAttribute() instead. CreateAttributeNSWarning=Use of document.createAttributeNS() is deprecated. Use element.setAttributeNS() instead. -SpecifiedWarning=Use of attributes' specified attribute is deprecated. It always returns true. OwnerElementWarning=Use of attributes' ownerElement attribute is deprecated. NodeValueWarning=Use of attributes' nodeValue attribute is deprecated. Use value instead. TextContentWarning=Use of attributes' textContent attribute is deprecated. Use value instead. diff --git a/dom/webidl/Attr.webidl b/dom/webidl/Attr.webidl index 27d4d40cd812..d1fbaa8223ef 100644 --- a/dom/webidl/Attr.webidl +++ b/dom/webidl/Attr.webidl @@ -18,14 +18,13 @@ interface Attr : Node { readonly attribute DOMString name; readonly attribute DOMString? namespaceURI; readonly attribute DOMString? prefix; + + readonly attribute boolean specified; }; // Mozilla extensions partial interface Attr { - readonly attribute boolean specified; - - [GetterThrows] readonly attribute Element? ownerElement; }; diff --git a/webapprt/locales/en-US/webapprt/overrides/dom.properties b/webapprt/locales/en-US/webapprt/overrides/dom.properties index f30d5f102d3b..51e798374735 100644 --- a/webapprt/locales/en-US/webapprt/overrides/dom.properties +++ b/webapprt/locales/en-US/webapprt/overrides/dom.properties @@ -49,7 +49,6 @@ SetAttributeNodeNSWarning=Use of setAttributeNodeNS() is deprecated. Use setAttr RemoveAttributeNodeWarning=Use of removeAttributeNode() is deprecated. Use removeAttribute() instead. CreateAttributeWarning=Use of document.createAttribute() is deprecated. Use element.setAttribute() instead. CreateAttributeNSWarning=Use of document.createAttributeNS() is deprecated. Use element.setAttributeNS() instead. -SpecifiedWarning=Use of attributes' specified attribute is deprecated. It always returns true. OwnerElementWarning=Use of attributes' ownerElement attribute is deprecated. NodeValueWarning=Use of attributes' nodeValue attribute is deprecated. Use value instead. TextContentWarning=Use of attributes' textContent attribute is deprecated. Use value instead.