W3C home > Mailing lists > Public > html-tidy@w3.org > July to September 2001

Re: XHTML issue

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Wed, 11 Jul 2001 00:29:15 +0200
To: "Carter, Wendy J. (LNG-CIS)" <Wendy.Carter@lexisnexis.com>
Cc: "'html-tidy@w3.org'" <html-tidy@w3.org>
Message-ID: <nvvmktkm66ipi5ojipamkkjo6bkofama2r@4ax.com>
* Carter, Wendy J. (LNG-CIS) wrote:
>When the input file contains internal anchors, such as: <a name="1">1.</a>,
>and the output is switched to xhtml,  the result is:  <a id="1"

A good thing in general.

>The name attribute is valid, as name is NMTOKEN in loose
>xhtml, but the id is invalid.

Maybe "valid" but not "conforming", the recommendation restricts the
value further to match the Name production in XML 1.0 and "1" doesn't
do so. Upcoming Tidy versions will include better checks for name and
id attributes.

>I understand that the name attribute is depreciated in xhtml

"deprecated", it already was in HTML 4.01.

>and that an id attribute is a good practice,

_Required_, the name attribute only may be used for better
compatibility. Newer XHTML versions don't include the name attribute
at all.

>but I would like to turn off the "id" being automatically output,
>and cannot find a way to do so.

There isn't and I don't see any good reason to change that.
Björn Höhrmann { mailto:bjoern@hoehrmann.de } http://www.bjoernsworld.de
am Badedeich 7 } Telefon: +49(0)4667/981028 { http://bjoern.hoehrmann.de
25899 Dagebüll { PGP Pub. KeyID: 0xA4357E78 } http://www.learn.to/quote/
Received on Tuesday, 10 July 2001 18:29:52 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:50 UTC