W3C home > Mailing lists > Public > whatwg@whatwg.org > March 2007

[whatwg] List of links idea (href="" stuff)

From: Anne van Kesteren <annevk@opera.com>
Date: Wed, 14 Mar 2007 14:22:57 +0100
Message-ID: <op.to6ksjl464w2qv@id-c0020.driveway.uu.nl>
The most common use case for href="" on every element seems to be about  
removing lots of characters when creating a navigation menu or a blog roll  
or similar list. So instead of typing

   <ul>
     <li><a href="">test</a>
     ...

you would type

   <ul>
     <li href="">test
     ...

Maybe we can change the content model of <ul> (and perhaps <ol>) to allow  
a series of <a> elements:

   <ul>
     <a href="">test</a>
     ...

For backwards compatibility text content would be allowed inside <ul> but  
must be ignored for the purposes of determining the semantics of the  
content (in a conforming HTML5 UA). This would allow:

   <ul>
     <a href="">test</a> |
     <a href="">test</a> |
     ...

Alternatively <nav> could be redefined to have this type of semantics when  
its content model is just <a> elements and text content.


(Also thanks to Sjoerd Visscher.)


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>
Received on Wednesday, 14 March 2007 06:22:57 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:53 UTC