W3C home > Mailing lists > Public > html-tidy@w3.org > January to March 2003

duplicate id problem

From: Mattias Karlsson <mattias.karlsson@labyrinten.se>
Date: Fri, 14 Mar 2003 10:40:17 +0100
Message-ID: <F3907E632C8ED41181540050DA67D48F197011@ratata.Labyrinten>
To: "'html-tidy@w3.org'" <html-tidy@w3.org>

Hi all,

Running this example through Tidy:
  <h1 id="val1"><a name="val1">Some text</a></h1>
with the setting "output-xhtml = yes", the output is:
  <h1 id="val1"><a name="val1" id="val1">Some text</a></h1>

Tidy inserts a id for the <a> tag and copies the content from
the name attribute, but this causes a id conflict with the
<h1> tag.

How come?

Best regards,

Mattias###########################################

This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange.
For more information, connect to http://www.F-Secure.com/
Received on Friday, 14 March 2003 04:32:33 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:53 GMT