mirror of
https://github.com/servo/servo.git
synced 2025-06-21 15:49:04 +01:00
Implementation of node.parentNode/parentElement
This commit is contained in:
parent
f3f6e62f7f
commit
a4aa8b05f7
2 changed files with 28 additions and 2 deletions
|
@ -592,11 +592,11 @@ impl Node<ScriptView> {
|
|||
}
|
||||
|
||||
pub fn GetParentNode(&self) -> Option<AbstractNode<ScriptView>> {
|
||||
None
|
||||
self.parent_node
|
||||
}
|
||||
|
||||
pub fn GetParentElement(&self) -> Option<AbstractNode<ScriptView>> {
|
||||
None
|
||||
self.parent_node.filtered(|parent| parent.is_element())
|
||||
}
|
||||
|
||||
pub fn HasChildNodes(&self) -> bool {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue