W3C home > Mailing lists > Public > html-tidy@w3.org > October to December 2009

Re: "<a> cannot copy name attribute to id"

From: Richard O'Keefe <ok@cs.otago.ac.nz>
Date: Fri, 23 Oct 2009 11:49:31 +1300
Cc: html-tidy@w3.org
Message-Id: <63A4FF7E-27A5-425E-943D-3009E4EA7723@cs.otago.ac.nz>
To: Buzzer <4625khz@gmail.com>
I already replied privately.
HTML 3.2 had <a name="xx">.
HTML 4 added <any-element id="xx">,
and the recommended maximise-your-interoperability practice
for <a> is to copy <a name="xx" id="xx">.
(If an <a> has both name= and id= they must have the same
value, but having both at the same time is intended.)
Tidy wants to help copy the name= to name= AND id=
BUT an id= attribute value must start with a letter.
<a name="01" id="01"> would not be legal.
So Tidy won't do it.  Changing to <a name="N01"> would
make Tidy happy.
Received on Thursday, 22 October 2009 22:50:14 UTC

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