RE: tidy putting gratuitous id='s

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
old:

	<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
`name`.


/Jelks

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