mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Correct the default max length
This commit is contained in:
parent
5450d49f57
commit
ecc7035de6
1 changed files with 1 additions and 1 deletions
|
@ -630,7 +630,7 @@ impl VirtualMethods for HTMLInputElement {
|
|||
&atom!("name") => AttrValue::from_atomic(value),
|
||||
&atom!("size") => AttrValue::from_limited_u32(value, DEFAULT_INPUT_SIZE),
|
||||
&atom!("type") => AttrValue::from_atomic(value),
|
||||
&atom!("maxlength") => AttrValue::from_i32(value, i32::MAX),
|
||||
&atom!("maxlength") => AttrValue::from_limited_i32(value, DEFAULT_MAX_LENGTH),
|
||||
_ => self.super_type().unwrap().parse_plain_attribute(name, value),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue