-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incomplete HTML displaying errors incorrectly #16981
Comments
cc @scheglov. |
Brian, do you know if this warning is produced by the analyzer? When I add a file with Luke's html structure the wst verifier correctly marks the first div-tag as having no closing tag. Set owner to @bwilkerson. |
This comment was originally written by LukeEC...@gmail.com If you need the original, somewhat complex HTML, let me know and I'll try and get it back to that state. I didn't send it originally as I thought it would just confuse the issue |
Hi Luke Thanks for the error report, this seems like a bug in the html5lib error reporting. To be more specific, polymer uses html5lib to parse html. This package includes warnings for many of the implicit rules in HTML. The message should have been swapped in this case: Unexpected end tag (body). Missing end tag (div). I'll send out a fix shortly. Set owner to @sigmundch. |
siggi just checked in a fix Added Fixed label. |
This issue has been moved to dart-lang/html#33. |
This issue was originally filed by LukeEC...@gmail.com
With a structure with insufficient end div tags
e.g.
<html>
<body>
<div>
<div>
</div>
</body>
A warning is displayed associated with the /body tag below:
"web/....html:163:1: Unexpected end tag (div). Missing end tag (body)."
It should be reporting that there was a missing end tag for (div) instead. This made fixing the difficult slightly tricky.
The page used polymer.
The text was updated successfully, but these errors were encountered: