Builder's diagnostics for HTML are a bit counterproductive
@eladalfassa
Submitted by Elad Alfassa Link to original bug (#782209)
Description
At the moment, Builder seems to attempt to validate HTML documents as if they were XML documents.
This is a bit problematic, because it highlights things such as "<!doctype html>" as an error (it's not an error, it's recommended by both W3C and WHATWG).
It also thinks that <br>
tags should have a closing tag (they shouldn't), and will autocomplete </br>
when you type <br>
, which is invalid.
Anyone who is new to HTML might trust Builder's diagnostics and autocompletion here, leading them to writing slightly broken code.
I think there are two possible ways to fix this:
-
stop attempting to validate / complete HTML, and continue doing so for XML only
-
Add html quirks for the xml diagnostics&autocompletion plugin to make it support
<br>
tags and <!doctype> declarations.