[Webkit-unassigned] [Bug 37789] New: <input type="search"> Cancel Button Should Fire an Event
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun Apr 18 23:28:18 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=37789
Summary: <input type="search"> Cancel Button Should Fire an
Event
Product: WebKit
Version: 528+ (Nightly build)
Platform: PC
OS/Version: Mac OS X 10.5
Status: NEW
Severity: Normal
Priority: P2
Component: HTML DOM
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: joepeck at webkit.org
Web Developers want to be able to detect when the user pressed the Cancel
button in a search input. Currently there is no reliable way to detect this. I
think firing an event makes sense.
I would suggest firing a bubbling, non-cancelable "cancel" event from the input
element.
The following would be an example of usage:
<input type="search" id="x">
<script>
var elem = document.getElementById('x')
elem.addEventListener('cancel', function(e) {
alert('You Clicked Cancel!');
// e.target would be elem
}, false);
</script>
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list