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

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