Closed Bug 767806 Opened 10 years ago Closed 10 years ago
Don't create a useless string every time we check for input's validity
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.
Attachment #636166 - Flags: review?(justin.lebar+bug)
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] Patch Woo, first official DOM peer review!
Attachment #636166 - Flags: review?(justin.lebar+bug) → review+
Target Milestone: --- → mozilla16
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.