Re: how is this Strict valid?

Jasper Magick wrote:
> 
> According to this:
> http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.w3.org%2F
> 
> w3.org validates Strict.  But, in the source code I found this:
> 
> <h2 class="newsHeading"><a name="news" id="news" shape="rect">News</a></h2>
> 
> I thought NAME was replaced by ID in Strict doctypes, making NAME no 
> longer valid?

Well, you thought wrong. in XHTML 1.0 Strict it's still perfectly ok in 
situations like these. XHTML 1.1 would be another matter.

> Also couldn't you have archived the same effect with less code if you 
> did this:
> 
> <h2 class="newsHeading" id="news">News</h2>

I'm guessing they did this for backwards compatibility with browsers 
(and some assistive technologies) that still don't play ball with 
linking to fragment identifiers. Although the shape="rect" seems a bit 
useless to me.

P
-- 
Patrick H. Lauke
__________________________________________________________
re·dux (adj.): brought back; returned. used postpositively
[latin : re-, re- + dux, leader; see duke.]
www.splintered.co.uk | www.photographia.co.uk
http://redux.deviantart.com
__________________________________________________________
Web Standards Project (WaSP) Accessibility Task Force
http://webstandards.org/
__________________________________________________________

Received on Friday, 22 December 2006 13:59:08 UTC