W3C home > Mailing lists > Public > www-html@w3.org > December 2006

Re: how is this Strict valid?

From: Patrick H. Lauke <redux@splintered.co.uk>
Date: Fri, 22 Dec 2006 13:58:50 +0000
Message-ID: <458BE49A.3040503@splintered.co.uk>
To: www-html@w3.org

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:16:08 GMT