aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/node.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/node.rs')
-rw-r--r--components/script/dom/node.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/node.rs b/components/script/dom/node.rs
index d92e3b6a364..b72dc6b695e 100644
--- a/components/script/dom/node.rs
+++ b/components/script/dom/node.rs
@@ -1463,7 +1463,7 @@ impl<'dom> LayoutNodeHelpers<'dom> for LayoutDom<'dom, Node> {
}
if let Some(input) = self.downcast::<HTMLInputElement>() {
- return unsafe { input.value_for_layout() };
+ return input.value_for_layout().into_owned();
}
if let Some(area) = self.downcast::<HTMLTextAreaElement>() {