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

hi leif,

i would suggest

a subheading attribute only be allowed on a sibling of a Hx, otherwise its
ignored.

>A @suheading attribute very easily looks like a
> @does-not-affect-outline attribute.

thats what <hgroup> is, with the subheading you get an explicit semantic to
convey to a11y APIs
i.e this is a "subheading" of its sibling heading

can anyone provide real world examples where this:

<h2>heading</h2>
<h2 subheading>subheading<h2>

would be ambiguous?

regards
stevef

On 8 April 2011 11:26, Leif Halvard Silli
<xn--mlform-iua@xn--mlform-iua.no>wrote:

> Steve Faulkner, Thu, 7 Apr 2011 10:37:56 +0100:
>
> > what are the arguments for/against adding a role value to indicate
> > when a h1-h6 is acting as a subheading?
> >
> > <h1>heading</h1>
> > <h2 role=subheading> subtitle </h2>
>
> Arguments against @role=subheading/@subheading:
>
> Unclear subheading connection:
>  Is the <h2> still a subheading if there is e.g. a <p> between
>  <h1> and the <h2 role=subeading> ?
>
>   <h1>heading</h1>
>   <p>Lorem </p>
>    <h2 role=subheading> subtitle </h2>
>
>   Or, what if the <h2 role=subheading> appears before the <h1>,
>  how is it then clear that it "belongs" to the <h1>?
>
> Unclear purpose of @subheading:
>  A @suheading attribute very easily looks like a
>  @does-not-affect-outline attribute. If that is what it is,
>  then I'd rather *have* a @does-not-affect-outline attribute
>
>   <h3 does-not-affect-outline > suptitle </h3>
>   <h1>heading</h1>
>   <h2 does-not-affect-outline > subtitle </h2>
>
> Accessibility:
>  Usually, when an element is connected to another one, then this
>  relationship should be expressed EITHER directly:
>
>    <h3 subheading-for="idref" > subtitle </h3>
>    <h1 id="idref">heading</h1>
>    <h2 subheading-for="idref" > subtitle </h2>
>
>   OR indirectly -  via nesting:
>
>    <h1>heading
>      <element> subtitle </element>
>    </h1>
>
>   And, in fact, HTML5' current solution is a form of indirect
>   connection.
> --
> leif halvard silli
>



-- 
with regards

Steve Faulkner
Technical Director - TPG

www.paciellogroup.com | www.HTML5accessibility.com |
www.twitter.com/stevefaulkner
HTML5: Techniques for providing useful text alternatives -
dev.w3.org/html5/alt-techniques/
Web Accessibility Toolbar - www.paciellogroup.com/resources/wat-ie-about.html

Received on Friday, 8 April 2011 10:35:52 UTC