mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Implement nodeName on Attr
This commit is contained in:
parent
7f4929d52d
commit
8cbcdfb761
7 changed files with 10 additions and 80 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue