[whatwg] href attribute

Elliotte Harold elharo at metalab.unc.edu
Sun Mar 4 15:17:01 PST 2007


Alexey Feldgendler wrote:

>> Navigation:
>> <ul id="main_nav">
>> <li href="/">Home</li>
>> <li href="/about/">About</li>
>> </ul>
> 
> How is this better than <li><a></a></li>, not taking the amount of 
> typing into account?

One less nested element means a simpler, cleaner more navigable DOM.

I'm not saying that's a sufficient advantage to justify the proposal, 
but the more ugly DOM code you've had to unravel the better this looks.

-- 
Elliotte Rusty Harold  elharo at metalab.unc.edu
Java I/O 2nd Edition Just Published!
http://www.cafeaulait.org/books/javaio2/
http://www.amazon.com/exec/obidos/ISBN=0596527500/ref=nosim/cafeaulaitA/



More information about the whatwg mailing list