Attr is a Node, with consequences for many Node methods

This commit is contained in:
Patrick Shaughnessy 2019-12-13 18:39:11 -05:00
parent 3e77a0ae09
commit 67e9fc8c0a
9 changed files with 229 additions and 306 deletions

View file

@ -8,7 +8,7 @@
*/
[Exposed=Window]
interface Attr {
interface Attr : Node {
[Constant]
readonly attribute DOMString? namespaceURI;
[Constant]
@ -17,14 +17,8 @@ interface Attr {
readonly attribute DOMString localName;
[Constant]
readonly attribute DOMString name;
[Constant]
readonly attribute DOMString nodeName; // historical alias of .name
[CEReactions, Pure]
attribute DOMString value;
[CEReactions, Pure]
attribute DOMString textContent; // historical alias of .value
[CEReactions, Pure]
attribute DOMString nodeValue; // historical alias of .value
[Pure]
readonly attribute Element? ownerElement;