Skip to content

Error on opening tag flagging error on closing tag saying opening tag is missing #1460

Open
@M-J-Robbins

Description

@M-J-Robbins

Describe the bug
When there is no space between 2 attributes on an element then the closing is reported as Tag must be paired, no start tag: [ </div> ]

To Reproduce
Steps to reproduce the behavior:

Enter this code into the playground https://htmlhint-playground.netlify.app/
Making sure the tag-pair is checked.

<div id="abc"class="def">
    test
</div>

Expected behavior
I would not expect to see the error on the closing tag.
I would expect to see an error related to there being no space between the attributes.

Screenshots
If applicable, add screenshots to help explain your problem.
image

Desktop (please complete the following information):

  • OS: MacOS 14.5
  • Browser: Chrome
  • Version: 127.

Additional context
I realise this is a duplicate of #18 but I think they maybe got closed due to lack of information.

This is quite an edge case but when looking at a large file it can be hard to work out why there is an issue showing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugFunctionality that does not work as intended/expectedkeep-unstaleThe issue will not be marked as stale by the stale-bot

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions