mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Properly handle CR in textarea placeholders (fixes #19717)
This commit is contained in:
parent
e2c89df8ee
commit
6f9003c052
3 changed files with 10 additions and 10 deletions
|
@ -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!")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue