diff options
Diffstat (limited to 'components/script/dom/text.rs')
-rw-r--r-- | components/script/dom/text.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/text.rs b/components/script/dom/text.rs index a3b66583d83..541bfd1ebd5 100644 --- a/components/script/dom/text.rs +++ b/components/script/dom/text.rs @@ -68,7 +68,7 @@ impl TextMethods for Text { if let Some(ref parent) = parent { // Step 7.1. parent - .InsertBefore(new_node.upcast(), node.GetNextSibling().deref()) + .InsertBefore(new_node.upcast(), node.GetNextSibling().as_deref()) .unwrap(); // Steps 7.2-3. node.ranges() |