mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-27 12:15:33 +00:00
servo: Merge #10372 - Implement nodeName on Attr (from dzbarsky:rmAttrNS); r=Ms2ger
Source-Repo: https://github.com/servo/servo Source-Revision: ca3d120f4abaa40c9377ac450420372fd00cf668
This commit is contained in:
parent
37f2322351
commit
6882ae5bcf
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user