... cannot copy name attribute to id

Cause:

In XHTML, the "name" attribute has been deprecated and replaced by the "id" attribute. If you want to keep both tags for compatibility reason, name and id, the values should be the same. This error is generated when only the name exists and that tidy try to copy the value of the name in the id attribute. But an "id" must begin with a letter (A-Za-z).

Example:

Good<a name="123456">...</a>
Good<a id="123456">...</a>
Good<a id="my_link">...</a>
Good<a id="my_link" name="my_link">...</a>

Solution:

Use "id" instead of "name" or use both with same values.

References: