HTML code is parsed by an XML parser
In my HTML5 code, I have some unclosed void tags like
<meta …> (instead of
<meta … />), as this isn’t necessary for valid HTML5 code. Even the official validator says that my code is fine and without a single error.
However, Builder shows me errors at both my
</body> tags, saying “error: Opening and ending tag mismatch”. I found a thread at StackOverflow, in which someone suggests that
#include "libxml/HTMLparser.h" is missing between
<!DOCTYPE html> and
<html>. This solves my problem, but then the official validator shows me an error, because of this.
I’m not that deep into web development, but it seems that Builder validates HTML5 by an XML parser instead of a HTML parser. Could that be corrected? Then Builder would also be in sync with the official specification.
<!DOCTYPE html> <html lang="de"> <head> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title> bla </title> </head> <body> </body> </html>