Quote:
Originally Posted by lkasdorf
I am using Sigil 0.5.3
When I create the TOC, it generates named anchors for each of the targeted headers. It uses the "name" attribute of the anchor tag. However, when I click the green check to validate, it complains that "name" is not a valid attribute for an anchor (which is incorrect).
It turns out that you can use "id" the same way you use "name" in an anchor. And if I change all the named anchors to id from name, the validate works fine.
I realize that the verify library was not written by the sigil authors- however, I'm surprised that sigil generates TOC code that does not pass validation.
|
I'm fairly certain Sigil doesn't auto-generate any code with a "name" attribute. It never has for me anyway. The only TOC related stuff that Sigil auto-generates is the NCX file. It doesn't auto-create
any anchors that I know of... let alone anchors with a "name" attribute. Outside of the NCX file, generating a TOC with Sigil will only modify/create the IDs of existing header tags. Are you sure those named anchors weren't already there
before Sigil got a hold of the code?