Sha256: 6ef1f01395ed8832f04b1780a53a0696b9521a610647e543a733b3b948d70321

Contents?: true

Size: 1.16 KB

Versions: 23

Compression:

Stored size: 1.16 KB

Contents

# Report HTML parsing errors (`HtmlParsingError`)

Report errors preventing the HTML from being parsed and analyzed by PlatformOS Check.

## Check Details

This check is aimed at reporting HTML errors that prevent a file from being analyzed.

The HTML parser limits the number of attributes per element to 400, and the maximum depth of the DOM tree to 400 levels. If any one of those limits is reached, parsing stops, and all HTML offenses on this file are ignored.

:-1: Examples of **incorrect** code for this check:

```liquid
<img src="muffin.jpeg"
     data-attrbute-1=""
     data-attrbute-2=""
     ... up to
     data-attrbute-400="">
```

:+1: Examples of **correct** code for this check:

```liquid
<img src="muffin.jpeg">
```

## Check Options

The default configuration for this check is the following:

```yaml
HtmlParsingError:
  enabled: true
```

## When Not To Use It

If you don't care about HTML offenses.

## Version

This check has been introduced in PlatformOS Check 0.0.1.

## Resources

- [Rule Source][codesource]
- [Documentation Source][docsource]

[codesource]: /lib/platformos_check/checks/html_parsing_error.rb
[docsource]: /docs/checks/html_parsing_error.md

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
platformos-check-0.4.12 docs/checks/html_parsing_error.md
platformos-check-0.4.11 docs/checks/html_parsing_error.md
platformos-check-0.4.10 docs/checks/html_parsing_error.md
platformos-check-0.4.9 docs/checks/html_parsing_error.md
platformos-check-0.4.8 docs/checks/html_parsing_error.md
platformos-check-0.4.7 docs/checks/html_parsing_error.md
platformos-check-0.4.6 docs/checks/html_parsing_error.md
platformos-check-0.4.5 docs/checks/html_parsing_error.md
platformos-check-0.4.4 docs/checks/html_parsing_error.md
platformos-check-0.4.3 docs/checks/html_parsing_error.md
platformos-check-0.4.2 docs/checks/html_parsing_error.md
platformos-check-0.4.1 docs/checks/html_parsing_error.md
platformos-check-0.4.0 docs/checks/html_parsing_error.md
platformos-check-0.3.3 docs/checks/html_parsing_error.md
platformos-check-0.3.1 docs/checks/html_parsing_error.md
platformos-check-0.3.0 docs/checks/html_parsing_error.md
platformos-check-0.2.2 docs/checks/html_parsing_error.md
platformos-check-0.2.1 docs/checks/html_parsing_error.md
platformos-check-0.2.0 docs/checks/html_parsing_error.md
platformos-check-0.1.0 docs/checks/html_parsing_error.md