- From: Andrew Shellshear <Andrew.Shellshear@research.canon.com.au>
- Date: Wed, 10 May 2006 11:58:42 +0200
- To: www-svg@w3.org, Bjoern Hoehrmann <derhoermi@gmx.net>
>* Andrew Shellshear wrote: >>On Mon, 04 Jul 2005 04:23:03 +0200, Bjoern wrote: >>> http://www.w3.org/TR/2005/WD-SVGMobile12-20050413/svgudom.html states >>> that getCurrentFocusedObject() returns a DOMObject; this does not make >>> much sense to me, from the draft it seems that only event targets can >>> be currently focused objects, i.e. SVGDocument, SVGElementInstance, >>> and SVGElement objects, all of which implement EventTarget, so this >>> should really return an events::EventTarget object. If there are cases >>> where objects can have focus that are not event targets, please point >>> this out clearly in the draft. If there are not, please change the >>> return type to events::EventTarget. >> >>We have added the following explanitary text to the description of getCurrentFocusedObject in >>http://www.w3.org/TR/2005/WD-SVGMobile12-20050413/svgudom.html#svg::SVGSVGElement - >> >>Returns a reference to the object which has the focus. This returns a >>DOMObject because the currently focused object may be an object outside >>the SVG namespace. If the currently focused object is in the SVG >>namespace, it should be cast to events::EventTarget. > >The Working Group would need to cite a convincing case in which the >currently focused object does not implement the EventTarget interface >and explain why script authors would nevertheless need access to this >object and take that into account e.g. in the moveFocus definition >which currently requires to dispatch events to these non event targets. OK - from discussion with implementers, we agree this is a reasonable change. getCurrentFocusedObject() now returns EventTarget. Thank you for your thorough review. Please let us know shortly if this does not address your concerns. Andrew.
Received on Wednesday, 10 May 2006 09:58:52 UTC