Opened 15 years ago

Closed 14 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:


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 15 years ago by bill

That might be nice, although widgets already have this with their _onFocus and _onBlur events.

comment:2 Changed 15 years ago by alex

Milestone: 1.0
Owner: changed from anonymous to alex
Status: newassigned

comment:3 Changed 14 years ago by simonjb

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 14 years ago by dylan

Resolution: wontfix
Status: assignedclosed
Note: See TracTickets for help on using tickets.