Quote:
Originally Posted by ibu
Exactly.
I think it's a mistake of the actual spec, kind of cowardice, that it's not more strict.
|
I'm not so sure. If NCX entries could only point to Hn tags then some flexibility would be lost. There are times when it can be appropriate to link to a paragraph which does not start with a header. If the spec forced one as a requirement then this could introduce sematic structure in places where there shouldn't be any - just to allow the toc to link to it.
Most of us recognise and dislike messy markup but there are many ways of using different, but well-formed, markup to achieve the same end result.
Have you done any web searches for HTML tidying tools. Maybe there is something out there with some flexible user configuration that could help you.