W3C home > Mailing lists > Public > public-html@w3.org > April 2011

Re: role="subheading" or role="subtitle" to replace hgroup

From: Henri Sivonen <hsivonen@iki.fi>
Date: Thu, 7 Apr 2011 04:04:45 -0700 (PDT)
To: HTMLWG WG <public-html@w3.org>
Message-ID: <1386718926.39638.1302174285592.JavaMail.root@cm-mail03.mozilla.org>
> what are the arguments for/against adding a role value to indicate
> when a h1-h6 is acting as a subheading?

 1) It makes the role attribute a mixed bag of AT-only stuff and other stuff. It would be clearer to keep the role attribute for AT-only stuff.
 2) It would be desirable to have a selector that matches on the outline depth. Making a selector depend on the outline algorithm makes the algorithm performance-sensitive. Doing stuff depending on an attribute value is likely to be more of an issue for performance than doing stuff based on the name of the element.

Henri Sivonen
Received on Thursday, 7 April 2011 11:05:14 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 9 October 2021 18:45:35 UTC