W3C home > Mailing lists > Public > whatwg@whatwg.org > February 2009

[whatwg] List Headers

From: Ian Hickson <ian@hixie.ch>
Date: Wed, 4 Feb 2009 21:11:26 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0902042109340.952@hixie.dreamhostps.com>
On Wed, 4 Feb 2009, Benjamin Hawkes-Lewis wrote:
> 
> Pros of lh:
> 
> * User agents could give a different default style to "LH" (e.g. bold in a
> visual medium, or reading "list header" in an speech medium).
> * Fewer bytes.
> 
> Pros of traditional markup:
> 
> * Can style sublists without introducing new features to CSS.
> * Works correctly in existing user agents (e.g. list navigation in screen
> readers).

There is also the issue that changing the parsing rules around <li> is 
difficult. For example, the following:

    <ol>
     <lh> Fruit
      <li> Apple
      <li> Pear
     <lh> Vegetables
      <li> Carrot
      <li> Celery
    </ol>

...looks like it should work, but in practice the <lh> element for 
Vegetables would end up inside the Pear <li> element, and changing that 
would likely be problematic.

Given the variety of alternatives to <lh> that already exist in HTML4 and 
that have been introduced in HTML5, I do not propose to add <lh>.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Wednesday, 4 February 2009 13:11:26 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:09 UTC