Bug 13786
| Summary: | REGRESSION: onsearch fires when pressing backspace in an empty search field | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Adam Roben (:aroben) <aroben> |
| Component: | Forms | Assignee: | Adele Peterson <adele> |
| Status: | RESOLVED WONTFIX | ||
| Severity: | Normal | CC: | adele, annevk, ap |
| Priority: | P1 | Keywords: | InRadar, Regression |
| Version: | 523.x (Safari 3) | ||
| Hardware: | Mac | ||
| OS: | OS X 10.4 | ||
| URL: | data:text/html,Press%20backspace%20in%20this%20search%20field:%3Cinput%20type=%22search%22%20incremental%20onsearch=%22javascript:document.getElementById('log').appendChild(document.createTextNode('onsearch\n'))%22%3E%3Cpre%20id=%22log%22%3E%3C/pre%3E | ||
Adam Roben (:aroben)
In an search field with the incremental attribute, onsearch will fire when pressing backspace in an empty search field. This seems unintentional, since the text in the search field hasn't actually changed.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Alexey Proskuryakov
I can only reproduce this with TOT, not with shipping Safari.
Adam Roben (:aroben)
<rdar://problem/5215963>
Adele Peterson
dispatchEditableContentChangedEvents is called when any editing command is applied or unapplied, but that doesn't actually mean that the editable content has changed.
I guess we need to rethink this event.
Anne van Kesteren
This feature is being removed.