View Single Post
Old 02-05-2017, 09:16 AM   #31
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
No,
The problem was a table inside a p tag. It is not allowed in xhtml 1.1 but is sometimes allowed under html under something called by browser developers as "quirks" mode. Sigil's gumbo follows that convention.

So if not provided with a doctype, Sigil's gumbo will enable "quirks" mode during clean on open which passes the table tag inside a p tag through. Sigil then adds the proper Doctype at the end. Unfortunately, when it is then checked for validity after cleaning, the error of the table inside a p is detected and Sigil refuses to accept it even with Mend on Open set.

Making sure there is a doctype as the first line of any html passed to Sigil will prevent this issue as the clean on open will then not be in quirks mode and will properly fix the table in p tag issue.

KevinH
KevinH is offline   Reply With Quote