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 499
    • Issues 499
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 20
    • Merge Requests 20
  • 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
  • #231

Closed
Open
Opened May 05, 2017 by bugzilla-migration@bugzilla-migrationReporter

Builder's diagnostics for HTML are a bit counterproductive

Submitted by Elad Alfassa @eladalfassa

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:

  1. stop attempting to validate / complete HTML, and continue doing so for XML only

  2. Add html quirks for the xml diagnostics&autocompletion plugin to make it support <br> tags and <!doctype> declarations.

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: GNOME/gnome-builder#231