W3C home > Mailing lists > Public > public-pfwg-comments@w3.org > January to March 2008

role=directory

From: Henri Sivonen <hsivonen@iki.fi>
Date: Wed, 26 Mar 2008 18:53:05 +0200
Message-Id: <1D2D031C-C42D-47E9-8317-91ED978A1313@iki.fi>
To: public-pfwg-comments@w3.org

The spec says:
> People should use this role for static tables of contents. This  
> includes tables of contents built with lists, including nested  
> lists. Dynamic tables of contents, however, would be a tree.

but then goes on to inherit states and properties for live regions.

Also, directory requires link as child elements. Suppose a document  
has a table of contents made of nested <ol> or <ul> lists. In that  
case, HTML doesn't provide the native table of contents semantic  
(perhaps it should?). However, HTML does provide the link semantic  
natively. Moreover, the links will be descendants but not children.

Therefore, requiring a role=link child seems excessive.

-- 
Henri Sivonen
hsivonen@iki.fi
http://hsivonen.iki.fi/
Received on Wednesday, 26 March 2008 16:53:43 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:01:01 UTC