зеркало из https://github.com/mozilla/gecko-dev.git
Bug 957430 - Stop pretending Attr.specified is deprecated; r=ehsan
This commit is contained in:
Родитель
700bf7f2ee
Коммит
abe09769dd
|
@ -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)
|
||||
|
|
|
@ -226,7 +226,6 @@ Attr::SetValue(const nsAString& aValue)
|
|||
bool
|
||||
Attr::Specified() const
|
||||
{
|
||||
OwnerDoc()->WarnOnceAbout(nsIDocument::eSpecified);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
|
|
@ -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.
|
||||
|
|
Загрузка…
Ссылка в новой задаче