Properly handle CR in textarea placeholders (fixes #19717)

This commit is contained in:
Anthony Ramine 2018-01-09 11:45:42 +01:00
parent e2c89df8ee
commit 6f9003c052
3 changed files with 10 additions and 10 deletions

View file

@ -1140,7 +1140,7 @@ impl LayoutNodeHelpers for LayoutDom<Node> {
}
if let Some(area) = self.downcast::<HTMLTextAreaElement>() {
return unsafe { area.get_value_for_layout() };
return unsafe { area.value_for_layout() };
}
panic!("not text!")