Closed
Bug 767806
Opened 11 years ago
Closed 11 years ago
Don't create a useless string every time we check for input's validity
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla16
People
(Reporter: mounir, Assigned: mounir)
Details
Attachments
(1 file)
973 bytes,
patch
|
justin.lebar+bug
:
review+
mounir
:
checkin+
|
Details | Diff | Splinter 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.
Attachment #636166 -
Flags: review?(justin.lebar+bug)
Assignee | ||
Comment 1•11 years ago
|
||
I should add that the validity of an input element is checked everytime the value is changed (more or less).
Comment 2•11 years ago
|
||
Comment on attachment 636166 [details] [diff] [review] Patch Woo, first official DOM peer review!
Attachment #636166 -
Flags: review?(justin.lebar+bug) → review+
Assignee | ||
Updated•11 years ago
|
Flags: in-testsuite-
Target Milestone: --- → mozilla16
Assignee | ||
Updated•11 years ago
|
Attachment #636166 -
Flags: checkin+
Comment 3•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/c995cbc6f7fc
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•