diff --git a/components/script/dom/htmlinputelement.rs b/components/script/dom/htmlinputelement.rs index be02f62314bd..19f5d53ef8b5 100644 --- a/components/script/dom/htmlinputelement.rs +++ b/components/script/dom/htmlinputelement.rs @@ -32,7 +32,6 @@ use msg::constellation_msg::ScriptMsg as ConstellationMsg; use selectors::states::*; use std::borrow::ToOwned; use std::cell::Cell; -use std::i32; use string_cache::Atom; use textinput::KeyReaction::{DispatchInput, Nothing, RedrawSelection, TriggerDefaultAction}; use textinput::Lines::Single; diff --git a/tests/wpt/web-platform-tests/html/semantics/forms/the-input-element/maxlength.html b/tests/wpt/web-platform-tests/html/semantics/forms/the-input-element/maxlength.html new file mode 100644 index 000000000000..59c97198be5b --- /dev/null +++ b/tests/wpt/web-platform-tests/html/semantics/forms/the-input-element/maxlength.html @@ -0,0 +1,61 @@ + + + + input max length + + + + + + + +

Text input element

+ +
+ + + + + +
+ +
+ + + + +