Bug 13786 - REGRESSION: onsearch fires when pressing backspace in an empty search field
Summary: REGRESSION: onsearch fires when pressing backspace in an empty search field
Status: ASSIGNED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Forms (show other bugs)
Version: 523.x (Safari 3)
Hardware: Mac OS X 10.4
: P1 Normal
Assignee: Adele Peterson
URL: data:text/html,Press%20backspace%20in...
Keywords: InRadar, Regression
Depends on:
Blocks:
 
Reported: 2007-05-19 14:19 PDT by Adam Roben (:aroben)
Modified: 2007-12-10 06:34 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Roben (:aroben) 2007-05-19 14:19:25 PDT
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.
Comment 1 Alexey Proskuryakov 2007-05-19 23:37:19 PDT
I can only reproduce this with TOT, not with shipping Safari.
Comment 2 Adam Roben (:aroben) 2007-05-19 23:47:27 PDT
<rdar://problem/5215963>
Comment 3 Adele Peterson 2007-05-21 22:36:16 PDT
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.