- From: Erik Dahlström <ed@opera.com>
- Date: Tue, 17 Jun 2008 15:16:18 +0200
- To: "Jonathan Chetwynd" <j.chetwynd@btinternet.com>, www-svg <www-svg@w3.org>
On Tue, 17 Jun 2008 14:55:09 +0200, Jonathan Chetwynd <j.chetwynd@btinternet.com> wrote: > event bubbling and focusHighlight > > is the behaviour of Opera 9.5 with respect to the focusHighlight in > the example attached correct? > > http://www.openicon.org/temp/focusable-scriptFocus-opera.svg > > would other similar examples improve our understanding? Try this instead: alert("e.target: " + e.target + " e.currentTarget: " + e.currentTarget + " type: " + e.type); The left use element listens to the 'focus' event. The 'focus' event is legacy from HTML, partially described here[1]. It doesn't bubble. The middle use element listens to the 'DOMFocusIn' event[2][3]. 'DOMFocusIn' bubbles. The right use element doesn't listen to events, but is focusable. Hope this helps /Erik [1] http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-eventgroupings-htmlevents [2] http://www.w3.org/TR/SVG11/interact.html#SVGEvents [3] http://www.w3.org/TR/SVGMobile12/interact.html#SVGEvents -- Erik Dahlstrom, Core Technology Developer, Opera Software Co-Chair, W3C SVG Working Group Personal blog: http://my.opera.com/macdev_ed
Received on Tuesday, 17 June 2008 13:18:28 UTC