Commit 97543406 authored by philipj@opera.com's avatar philipj@opera.com

Sync the Attr interface with the spec

https://dom.spec.whatwg.org/#interface-attr

BUG=460722

Review URL: https://codereview.chromium.org/942283002

git-svn-id: svn://svn.chromium.org/blink/trunk@190621 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent fdadfe21
......@@ -18,29 +18,25 @@
* Boston, MA 02110-1301, USA.
*/
interface Attr : Node {
// DOM Level 1
// https://dom.spec.whatwg.org/#interface-attr
// FIXME: Attr should not inherit from Node. crbug.com/305105
interface Attr : Node {
readonly attribute DOMString? namespaceURI;
readonly attribute DOMString? prefix;
// FIXME: localName/name/value/nodeValue/textContent should not be nullable.
readonly attribute DOMString? localName;
readonly attribute DOMString? name;
[MeasureAs=AttributeSpecified] readonly attribute boolean specified;
[ImplementedAs=valueForBindings, CustomElementCallbacks] attribute DOMString? value;
[ImplementedAs=valueForBindings, MeasureAs=AttrNodeValue] attribute DOMString? nodeValue;
[ImplementedAs=valueForBindings, MeasureAs=AttrTextContent] attribute DOMString? textContent;
// DOM Level 2
[ImplementedAs=valueForBindings, MeasureAs=AttrNodeValue] attribute DOMString? nodeValue; // legacy alias of .value
[ImplementedAs=valueForBindings, MeasureAs=AttrTextContent] attribute DOMString? textContent; // legacy alias of .value
// FIXME: ownerElement should be nullable.
[MeasureAs=AttributeOwnerElement] readonly attribute Element ownerElement;
// DOM 4
readonly attribute DOMString? prefix;
readonly attribute DOMString? namespaceURI;
readonly attribute DOMString? localName;
[MeasureAs=AttributeSpecified] readonly attribute boolean specified; // useless; always returns true
// https://www.w3.org/Bugs/Public/show_bug.cgi?id=26609
// FIXME: Attr should not have any child nodes. crbug.com/305105
[MeasureAs=AttrChildAccess] readonly attribute NodeList childNodes;
[MeasureAs=AttrChildAccess] readonly attribute Node firstChild;
[MeasureAs=AttrChildAccess] readonly attribute Node lastChild;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment