View Single Post
Old 11-14-2015, 04:44 PM   #69
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: 8,887
Karma: 6120478
Join Date: Nov 2009
Device: many
Actually,

The gumbo parser is correct here. Although BV and preview will still show it, gumbo detects the error and reports it. So technically the following is illegal code:

Code:
<p>For instance, this fantastic sentence has bullets relating to
<ul>
 <li>wizards,
 <li>faster-than-light travel, and
 <li>telepathy,
</ul>
and is further discussed below.</p>
According to the spec ...

http://www.w3.org/TR/html5/grouping-...#the-p-element

"List elements (in particular, ol and ul elements) cannot be children of p elements."

In an example in that sections says the correct way to best handle this is to rewrite it as follows:

Code:
div>For instance, this fantastic sentence has bullets relating to
<ul>
 <li>wizards,
 <li>faster-than-light travel, and
 <li>telepathy,
</ul>
and is further discussed below.</div>
Personally, I see this as just the general stupidity of trying to edit anything while in BV. BV supports it, BV displays it, but technically is is incorrect html and incorrect in our context. Gumbo properly detects the incorrect html and warns you about it before reloading it into BV. If you let it, gumbo will properly fix the code to make it technically correct.

Not sure how to handle this. It is technically not a bug.

KevinH

Last edited by KevinH; 11-14-2015 at 05:30 PM. Reason: try to make things clearer and more precise to prevent creating confusion
KevinH is offline