WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
7094
onfocus/onblur on non-form-controls bubble
https://bugs.webkit.org/show_bug.cgi?id=7094
Summary
onfocus/onblur on non-form-controls bubble
Maciej Stachowiak
Reported
2006-02-05 19:17:12 PST
onfocus and onblur on non-form-control elements (such as an editable <div>) are inappropriately connected to DOMFocusIn and DOMFocusOut events, which bubble, instead of focus and blur which do not. This does not match other browsers. The HTML4 spec is silent on this, it claims onfocus can only be applied to form controls.
Attachments
focus fix
(5.07 KB, patch)
2006-02-05 19:42 PST
,
Maciej Stachowiak
darin
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Maciej Stachowiak
Comment 1
2006-02-05 19:42:57 PST
Created
attachment 6276
[details]
focus fix
Darin Adler
Comment 2
2006-02-05 20:49:47 PST
Comment on
attachment 6276
[details]
focus fix Test case lacks a </div> after the first sentence. Does SVGElementImpl::parseMappedAttribute have the same issue? r=me
Eric Seidel (no email)
Comment 3
2006-02-05 22:05:49 PST
SVG focus events bubble
http://www.w3.org/TR/SVG/interact.html#SVGEvents
defers to:
http://www.w3.org/TR/DOM-Level-2-Events/events.html
which says they bubble.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug