Skip to content

Diagnostic issue: MISSING_CLOSING_TAG_ERROR on wrong elements #489

Description

@D-system

Line: 1
Diagnostic: Opening tag <div> at (1:1) doesn't have a matching closing tag </div>.
Severity: Error

File Content:
Please paste your HTML ERB file content below to help us reproduce the issue:

<div>
  <ul>
    <li><button><button></li>
  </ul>
</div>

Problematic Line:

 <li><button><button></li>

Environment:

  • VS Code Extension Version: 0.7.0

  • VS Code Version: 1.103.2

  • Platform: darwin

  • Node Version: v22.17.0

    Herb Settings:

{
"linter.enabled": true,
"trace.server": "verbose"
}

Additional Context:
The entire file has an issue with 2 opened button tags in the middle.
The file was vastly longer and didn't have an error on the buttons themselves.

Image

With the proper closing tag
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions