Created attachment 636166 [details] [diff] [review]
nsHTMLInputElement::HasPatternMismatch is creating a string for @pattern every time, even if @pattern isn't set. It seems that we can save a few cycles by not doing so.
I should add that the validity of an input element is checked everytime the value is changed (more or less).
Comment on attachment 636166 [details] [diff] [review]
Woo, first official DOM peer review!