- From: Michael Smith via cvs-syncmail <cvsmail@w3.org>
- Date: Fri, 06 May 2011 03:37:05 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/markup/tools
In directory hutz:/tmp/cvs-serv17575/tools
Modified Files:
specgen.xsl
Log Message:
Make dfn popups keyboard operable + accessible. Thanks Steve.
Index: specgen.xsl
===================================================================
RCS file: /sources/public/html5/markup/tools/specgen.xsl,v
retrieving revision 1.94
retrieving revision 1.95
diff -u -d -r1.94 -r1.95
--- specgen.xsl 21 Jan 2011 06:47:44 -0000 1.94
+++ specgen.xsl 6 May 2011 03:37:03 -0000 1.95
@@ -902,6 +902,15 @@
</xsl:choose>
</xsl:template>
<xsl:template match='*'/>
+ <xsl:template match="h:dfn">
+ <dfn>
+ <xsl:copy-of select="@*"/>
+ <xsl:attribute name="role">button</xsl:attribute>
+ <xsl:attribute name="tabindex">0</xsl:attribute>
+ <xsl:attribute name="aria-haspopup">true</xsl:attribute>
+ <xsl:copy-of select="node()"/>
+ </dfn>
+ </xsl:template>
<xsl:template match="h:a[@href[starts-with(.,'#')]][ancestor::*[@class='elem-mdl']]"
priority="100">
<xsl:choose>
Received on Friday, 6 May 2011 03:37:07 UTC