aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/parse/html.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/parse/html.rs')
-rw-r--r--components/script/parse/html.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/parse/html.rs b/components/script/parse/html.rs
index 8bb528c2efe..c870fe8c616 100644
--- a/components/script/parse/html.rs
+++ b/components/script/parse/html.rs
@@ -121,7 +121,7 @@ impl<'a> TreeSink for servohtmlparser::Sink {
new_node: NodeOrText<JS<Node>>) -> Result<(), NodeOrText<JS<Node>>> {
// If there is no parent, return the node to the parser.
let sibling: Root<Node> = sibling.root();
- let parent = match sibling.r().parent_node() {
+ let parent = match sibling.r().GetParentNode() {
Some(p) => p.root(),
None => return Err(new_node),
};