Re: Proposal: Canvas accessibility and a media querries approach for alternative content (Action Item 6 in the HTML Accessibility Task Force)

On Wed, 20 Jan 2010, Steven Faulkner wrote:
>
> in the case where a user clicks on a pseudo text input on the canvas, 
> can a focus rectangle be drawn using the drawfocusring() method?

Sure.


> would it not make sense for click to cause the associated
> (drawfocusring(element, ) text input in the subdom to gain focus?

Yes, in fact the script would _have_ to do that in order for the focusing 
ring mechanism to work properly. That's why it was designed that way.


> Thus the drawfocusring() method could be used to cut down on unecessary 
> duplication of event handling for all users as they would be handled by 
> the native elements regardless of whether they had a disibility and 
> required the use of the keyboard or not.

Yes, duplication of code is generally bad programming practice.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Wednesday, 20 January 2010 13:54:04 UTC