Skip to content

How to find the error file?Β #136

@GoulartNogueira

Description

@GoulartNogueira

Problem:

I can't find the exact problem pointed by @nuxtjs/html-validator.

Expected:

To have more detail for each error, like the filename, or at least the surrounding code.


I have a big medium-size project with dozens of pages and components.

I've just installed @nuxtjs/html-validator and run.
It has successfully found some errors:

 ERROR  HTML validation errors found for /my-url-route

inline
  591:375   error  <h1> cannot be empty, must have text content                        empty-heading
  591:649   error  Anchor link must have a text describing its purpose                 wcag/h30
  593:866   error  <input> is missing required "type" attribute                        element-required-attributes
  593:866   error  <input> element does not have a <label>                             input-missing-label

As I have only 1 <h1> tag, it was easy to find the first bug, but as I use lot's of components, in some cases, I can't know exactly where the problems are.

I feel like I'm missing something fundamental here. Am I not using the took correctly?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions