Skip to content

Is it possible to look up the outer HTML tag?  #654

@derpdeveloper

Description

@derpdeveloper

Hi HTMLHint Team,

Describe your problem
I'm trying to make a rule where HTMLHint reports if there is a wrapper tag outside the strong tag

E.g:

<p><strong>Text</strong></p>
  • HTMLHint should report that there is a wrapper p tag outside the strong tag

What I've tried

parser.addListener("tagend", function (event) {
          console.log(event)
        });

Which logs:
image

However I'm not able to get the </p> event that comes after the </strong/> event

Metadata

Metadata

Assignees

No one assigned

    Labels

    bot:staleIssue marked as stale because there was no activity

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions