mirror of
https://github.com/servo/servo.git
synced 2025-08-04 05:00:08 +01:00
Implement Document.createElementNS.
This commit is contained in:
parent
86c83f7bfc
commit
4b0da08573
6 changed files with 101 additions and 8 deletions
|
@ -1734,8 +1734,9 @@ impl Node {
|
|||
}
|
||||
|
||||
// http://dom.spec.whatwg.org/#dom-node-namespaceuri
|
||||
pub fn GetNamespaceURI(&self) -> Option<DOMString> {
|
||||
None
|
||||
pub fn GetNamespaceURI(&self, abstract_self: &JS<Node>) -> Option<DOMString> {
|
||||
let element: Option<JS<Element>> = ElementCast::to(abstract_self);
|
||||
element.map(|element| element.get().namespace.to_str().to_owned())
|
||||
}
|
||||
|
||||
// http://dom.spec.whatwg.org/#dom-node-prefix
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue