Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(274)

Unified Diff: core/dom/Attr.idl

Issue 1660113002: Updated to Chrome 45 (2454) moved from SVN to git. Base URL: https://github.com/dart-lang/webcore.git@roll_45
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « core/dom/ArrayBufferView.idl ('k') | core/dom/CDATASection.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
};
-
« no previous file with comments | « core/dom/ArrayBufferView.idl ('k') | core/dom/CDATASection.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698