I felt bad about you not being able to work until this issue was fixed so I took a look at it now. It turned out to be remarkably simple to fix: Tidy (wrongly) specifies that the "name" attribute is present in the XHTML 1.1. spec, and has a special function for "fixing" (actually breaking) anchors.
So while I was analyzing this function for a not-too-intrusive way to turn it off, I noticed Tidy has an option for turning on/off this "name fixing" behavior. The option is switched on by default, but Tidy usually changes options according to the required doctype. So this should have been turned off internally, but it wasn't.
Either way, I now explicitly turned it off and it all works. No more name attribute.
You can build Sigil from source and get the fix right now if you need it ASAP, or you can wait for the first beta of 0.2.0.
Last edited by Valloric; 02-24-2010 at 08:05 PM.
|