Re: @role in SVG

On Thu, 04 Oct 2007 13:42:12 +0200, Doug Schepers <schepers@w3.org> wrote:
> Dave Raggett wrote (on 10/4/2007 7:10 AM):
>>  I also find class to be useful for creating rich web applications,  
>> e.g. for a slide presentation, class makes it easy for the associated  
>> script to distinguish which g elements are intended as slides. The  
>> XHTML role attribute provides for a more robust solution and would be a  
>> valuable addition to future versions of SVGT.
>>  See http://www.w3.org/TR/xhtml-role/
>
> I've found exactly the same thing (and for exactly the same example ;)  
> ).  I strongly agree with this, and have put this issue on our agenda.  
> It's especially interesting in light of the ARIA work and the  
> discussions about HTML5.

Cool! I thought about this too and I don't think there's much harm in  
simply allowing role= and all the aria-* attributes on SVG elements as  
well. They don't bring any associated DOM interfaces with them and it only  
makes things easier for authors. It would be pretty trivial to modify the  
ARIA proposal for HTML5 to make it suitable for SVG as well. As some kind  
of add-on to both (X)HTML and SVG.


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>

Received on Thursday, 4 October 2007 11:47:38 UTC