mozilla / slowparse

A slow JS-based HTML parser with good error feedback and debugging metadata.

Home Page:http://mozilla.github.com/slowparse/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

correctly flag <body><div><p>lol</</div></body>

Pomax opened this issue · comments

commented

Rather than signaling that </ is mismatched to <p>, it flags it as mismatched to </div>. We'll have to update the error detection for this use-case.

This is because it considers the p an auto-closing tag and not actually in need of closing in this case? As with the case we had before, if we just ask people to close all the tags, then this would be resolved.