Skip to content
Permalink
Browse files

Implement nodeName on Attr

  • Loading branch information
dzbarsky committed Apr 3, 2016
1 parent 7f4929d commit 8cbcdfb761cee62e05c45d76ec697bb4a120883f
@@ -138,6 +138,11 @@ impl AttrMethods for Attr {
DOMString::from(&*self.identifier.name)
}

// https://dom.spec.whatwg.org/#dom-attr-nodename
fn NodeName(&self) -> DOMString {
self.Name()
}

// https://dom.spec.whatwg.org/#dom-attr-namespaceuri
fn GetNamespaceURI(&self) -> Option<DOMString> {
let Namespace(ref atom) = self.identifier.namespace;
@@ -17,12 +17,14 @@ interface Attr {
readonly attribute DOMString localName;
[Constant]
readonly attribute DOMString name;
[Constant]
readonly attribute DOMString nodeName; // historical alias of .name
[Pure]
attribute DOMString value;
[Pure]
attribute DOMString textContent; // alias of .value
attribute DOMString textContent; // historical alias of .value
[Pure]
attribute DOMString nodeValue; // alias of .value
attribute DOMString nodeValue; // historical alias of .value

[Pure]
readonly attribute Element? ownerElement;

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

@@ -8036,7 +8036,7 @@
[Document interface: iframe.contentDocument must inherit property "createTreeWalker" with the proper type (27)]
expected: FAIL
[Document interface: iframe.contentDocument must inherit property "styleSheets" with the proper type (28)]
expected: FAIL

0 comments on commit 8cbcdfb

Please sign in to comment.
You can’t perform that action at this time.