Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
gnome-builder
gnome-builder
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 496
    • Issues 496
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 19
    • Merge Requests 19
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • GNOME
  • gnome-buildergnome-builder
  • Issues
  • #698

Closed
Open
Opened Nov 04, 2018 by Frank Brütting@fbruetting🤘

HTML code is parsed by an XML parser

3.31.1-85-ga8580e56f flatpak-nightly

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 </head> and </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.

Example:

<!DOCTYPE html>

<html lang="de">
	<head>
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<title>
			bla
		</title>
	</head>
		
	<body>
	</body>
</html>

Bildschirmfoto_von_2018-11-04_20-35-31

Edited Nov 04, 2018 by Frank Brütting
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: GNOME/gnome-builder#698