3.1.4 • Published 11 months ago

@hint/parser-html v3.1.4

Weekly downloads
3,934
License
Apache-2.0
Repository
github
Last release
11 months ago

HTML (@hint/parser-html)

The HTML parser is built on top of jsdom so hints can analyze HTML files.

Note: This parser is currently only needed if using the local connector. Other connectors provide their own DOM to generate events instead.

This package is installed automatically by webhint:

npm install hint --save-dev

To use it, activate it via the .hintrc configuration file:

{
    "connector": {...},
    "formatters": [...],
    "hints": {
        ...
    },
    "parsers": ["html"],
    ...
}

Note: The recommended way of running webhint is as a devDependency of your project.

Events emitted

This parser emits the event parse::end::html of type HTMLParse which has the following information:

  • document: an HTMLDocument object containing the parsed document.
  • html: a string containing the raw HTML source code.
  • resource: the parsed resource.

And the event parse::start::html of type Event which has the following information:

  • resource: the resource that is going to be parsed.
3.1.4

11 months ago

3.1.3

1 year ago

3.1.2

2 years ago

3.1.1

2 years ago

3.1.0

2 years ago

3.0.27

2 years ago

3.0.26

2 years ago

3.0.25

2 years ago

3.0.24

2 years ago

3.0.23

2 years ago

3.0.22

3 years ago

3.0.21

3 years ago

3.0.20

3 years ago

3.0.19

3 years ago

3.0.18

3 years ago

3.0.17

4 years ago

3.0.16

4 years ago

3.0.15

4 years ago

3.0.14

4 years ago

3.0.13

4 years ago

3.0.12

4 years ago

3.0.11

5 years ago

3.0.10

5 years ago

3.0.9

5 years ago

3.0.8

5 years ago

3.0.7

5 years ago

3.0.6

5 years ago

3.0.5

5 years ago

3.0.4

5 years ago

3.0.3

5 years ago

3.0.2

5 years ago

3.0.1

5 years ago

3.0.0

5 years ago

2.0.2

5 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.1.0

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago