W3C home > Mailing lists > Public > html-tidy@w3.org > April to June 2004

RE: tidy putting gratuitous id='s

From: Jelks Cabaniss <jelks@jelks.nu>
Date: Tue, 8 Jun 2004 21:52:51 -0400
To: <html-tidy@w3.org>
Message-ID: <002501c44dc4$79f22e60$6501a8c0@blackie>

Dan Jacobson wrote:
> Goodness, tidy (vers 1st March 2004) puts
> <a name="usb_card_reader" id="usb_card_reader">
> where just
> <a name="usb_card_reader">
> existed before.
> That will take users a lot of work to clean up if that's not what
> they want. 

Are you using (SGML-syntax) HTML?

If you use `id` *instead* of `name`, you won't get the redundancy.  Note
that for XHTML 1.1 going forward, `name` is completely removed, since `id`
already does the job, plus `id` works with all other elements (i.e., you can
link to `<span id="foo">...</span>`, etc.).  Because of this, instead of the

	<h3><a name="foo"></a>Whatever</h3>

most people are now writing:

	<h3 id="foo">Whatever</h3>

Which, BTW, is just as valid in HTML 4.01.

The above of course is just an FYI -- it doesn't address the issue of what
Tidy does -- or should do -- should you for whatever reason only want to use

Received on Tuesday, 8 June 2004 21:53:15 UTC

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