W3C home > Mailing lists > Public > www-svg@w3.org > July 2006

[SVGMobile12] setFocus() and focus methods in general

From: Anne van Kesteren <annevk@opera.com>
Date: Thu, 06 Jul 2006 11:55:29 +0200
To: www-svg@w3.org
Message-ID: <op.tb9hurhn64w2qv@id-c0020.www.planet.nl>

Hi,

In  
http://www.w3.org/TR/2005/WD-SVGMobile12-20051207/svgudom.html#svg::SVGSVGElement_setFocus  
it's not clear what happens when DOMObject is not an Element node. I guess  
you want it to be a DOMObject for something special, but it should be  
clear in all cases how interaction works, not just for Element nodes which  
can have a focusable="" attribute specified.

Another problem is that the method definition assumes another element  
already has focus, by stating that a DOMFocusIn event must be dispatched  
on some node.


In general, it's not clear to me why these methods exist on SVGSVGElement.  
It seems like you want such methods on the Document object, once, for all  
languages that have focusable elements etc. Same for  
getCurrentFocusedObject() for example. Those methods are not really  
practical in situations where you have two sibling <svg:svg> elements  
within some XHTML document...

Cheers,

Anne


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>
Received on Thursday, 6 July 2006 09:55:47 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:35 GMT