Re: suggestion for abolition of <hgroup>

Leif Halvard Silli, Thu, 23 Dec 2010 19:06:56 +0100:
> Steve Faulkner, Wed, 22 Dec 2010 09:33:07 +0000:

>>> What happens if there is no non-subtitle heading?
>>> 
>>> <section>
>>> <h2 subtitle>I am having an identity crisis</h2>
>>> </section>
>> 
>> make
>> <h2 subtitle>I am having an identity crisis</h2>
>> 
>> without a previous sibling heading a conformance error and modify the
>> algorithm so it ignores the subtitle attribute if the heading it is on
>> does not have a previous sibling which is a heading
> 
> Sounds like a brilliant suggestion, Steve.

However, to handle the 'first from amongst those children with the 
highest rank' rule, the algorithm would have to be complicated so that 
it could replicate cases where the highest rank follows a lower rank:

<hgroup>
 <h2>I am having an identy crisis</h2>
 <h1>Main title</h2>
</hgroup>

I.e. whenever the next element is a heading of higher rank, then it 
would have to respect the subtitle attribute even when there is no 
previous sibling which is a heading.
-- 
leif halvard silli

Received on Friday, 24 December 2010 09:22:59 UTC