Skip to content
Permalink
Browse files

Correct the default max length

  • Loading branch information
samfoo committed Dec 3, 2015
1 parent 5450d49 commit ecc7035de6f4a2de624b01aaaa2d269065703ced
Showing with 1 addition and 1 deletion.
  1. +1 −1 components/script/dom/htmlinputelement.rs
@@ -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),
}
}

0 comments on commit ecc7035

Please sign in to comment.
You can’t perform that action at this time.