Opened 14 years ago
Closed 13 years ago
#4420 closed enhancement (wontfix)
Normalise onfocus and onblur
Reported by: | simonjb | Owned by: | alex |
---|---|---|---|
Priority: | high | Milestone: | 1.1 |
Component: | Core | Version: | 0.9 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
onfocus and onblur bubble upwards in most browsers. However, in IE they do not. IE has its own set of events that operate like onfocus and onblur but bubble: onactivate and ondeactivate.
It would be convenient to normalise the behaviour in dojo.connect. We could attach to onactivate in IE when someone dojo.connects to onfocus (and likewise for onblur). There may, of course, be subtleties here that I'm not aware of. Another option would be to create new events like onbubblingfocus and onbubblingblur.
Change History (4)
comment:1 Changed 14 years ago by
comment:2 Changed 14 years ago by
Milestone: | → 1.0 |
---|---|
Owner: | changed from anonymous to alex |
Status: | new → assigned |
comment:3 Changed 13 years ago by
The description on this ticket is wrong. I was incorrect: onfocus and onblur do not bubble in IE, Safari, Opera or the W3C DOM spec. FF is behaving inconsistently with the spec and common behavior in other browsers.
Should we rewrite the description or simply close as "invalid"?
comment:4 Changed 13 years ago by
Resolution: | → wontfix |
---|---|
Status: | assigned → closed |
That might be nice, although widgets already have this with their _onFocus and _onBlur events.