Re: "<a> cannot copy name attribute to id"
"Richard O'Keefe" <[email protected]> Fri, 23 Oct 2009 11:49:31 +1300
| Newsgroups | gmane.comp.web.html-tidy.user |
|---|---|
| Message-ID | <[email protected]> |
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.