Bug 13786

Summary: REGRESSION: onsearch fires when pressing backspace in an empty search field
Product: WebKit Reporter: Adam Roben (:aroben) <aroben>
Component: FormsAssignee: Adele Peterson <adele>
Status: ASSIGNED ---    
Severity: Normal CC: adele, 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

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.