Index: core/dom/Attr.idl |
diff --git a/core/dom/Attr.idl b/core/dom/Attr.idl |
index 5c22a7986f1d548b34025d1e5656b780dc6d85b0..54540ba1d6648299e1f6c8b91edabb936a2eabc5 100644 |
--- a/core/dom/Attr.idl |
+++ b/core/dom/Attr.idl |
@@ -18,26 +18,19 @@ |
* Boston, MA 02110-1301, USA. |
*/ |
-interface Attr : Node { |
- |
- // DOM Level 1 |
- |
- readonly attribute DOMString? name; |
- |
- [MeasureAs=AttributeSpecified] readonly attribute boolean specified; |
- |
- [ImplementedAs=valueForBindings, CustomElementCallbacks] attribute DOMString? value; |
- [DeprecateAs=AttrNodeValue, ImplementedAs=valueForBindings] attribute DOMString? nodeValue; |
- [DeprecateAs=AttrTextContent, ImplementedAs=valueForBindings] attribute DOMString? textContent; |
- |
- // DOM Level 2 |
+// https://dom.spec.whatwg.org/#interface-attr |
- [DeprecateAs=AttributeOwnerElement] readonly attribute Element ownerElement; |
+// FIXME: Attr should not inherit from Node. crbug.com/305105 |
+interface Attr : Node { |
+ readonly attribute DOMString? namespaceURI; |
+ readonly attribute DOMString? prefix; |
+ readonly attribute DOMString localName; |
+ readonly attribute DOMString name; |
+ [ImplementedAs=valueForBindings, CustomElementCallbacks] attribute DOMString value; |
+ [TreatNullAs=EmptyString, ImplementedAs=valueForBindings, MeasureAs=AttrNodeValue] attribute DOMString nodeValue; // legacy alias of .value |
+ [TreatNullAs=EmptyString, ImplementedAs=valueForBindings, MeasureAs=AttrTextContent] attribute DOMString textContent; // legacy alias of .value |
- // DOM 4 |
+ [MeasureAs=AttributeOwnerElement] readonly attribute Element? ownerElement; |
- readonly attribute DOMString? prefix; |
- readonly attribute DOMString? namespaceURI; |
- readonly attribute DOMString? localName; |
+ [MeasureAs=AttributeSpecified] readonly attribute boolean specified; // useless; always returns true |
}; |
- |