Re: SVG12: getCurrentFocusedObject return type

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.

Please let us know within two weeks if this does not satisfy your comment.

Received on Tuesday, 25 October 2005 06:59:01 UTC