w3c-html-validator 2.0.2 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.txt +1 -1
- package/README.md +3 -1
- package/dist/w3c-html-validator.d.ts +1 -1
- package/dist/w3c-html-validator.js +4 -3
- package/package.json +5 -5
package/LICENSE.txt
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2021-
|
|
3
|
+
Copyright (c) 2021-2026 Individual contributors to w3c-html-validator
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
package/README.md
CHANGED
|
@@ -97,7 +97,8 @@ Command-line flags:
|
|
|
97
97
|
- `html-validator docs --trim=30 --continue`<br>
|
|
98
98
|
Truncates validation messages to 30 characters and does not abort CI if validation fails.
|
|
99
99
|
|
|
100
|
-
|
|
100
|
+
> [!NOTE]
|
|
101
|
+
> _Single quotes in commands are normalized so they work cross-platform and avoid the errors often encountered on Microsoft Windows._
|
|
101
102
|
|
|
102
103
|
### 6. Configuration File for Ignore Patterns
|
|
103
104
|
The optional `--ignore-config=FILENAME` flag specifies a configuration file with one string or regex per line.
|
|
@@ -121,6 +122,7 @@ The optional `--default-rules` flag causes HTML validation messages to be skippe
|
|
|
121
122
|
Default ignore list:
|
|
122
123
|
| Pattern | Level | Explanation |
|
|
123
124
|
| ------------------------ | ----------- | ----------- |
|
|
125
|
+
| `with computed level` | **error** | It's ridiculous that adding an `<aside>` with an `<h2>` breaks the outer flow's outline. |
|
|
124
126
|
| `Section lacks heading.` | **warning** | Rule is sensible for traditional print publishing but absurd for modern UI components not burning in nested `<div>` hell. |
|
|
125
127
|
|
|
126
128
|
If there is an additional W3C validation message you think is ridiculous, open an issue with a note explaining why the message should be ignored.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//! w3c-html-validator v2.0
|
|
1
|
+
//! w3c-html-validator v2.1.0 ~~ https://github.com/center-key/w3c-html-validator ~~ MIT License
|
|
2
2
|
|
|
3
3
|
import { cliArgvUtil } from 'cli-argv-util';
|
|
4
4
|
import { globSync } from 'glob';
|
|
@@ -8,9 +8,10 @@ import log from 'fancy-log';
|
|
|
8
8
|
import request from 'superagent';
|
|
9
9
|
import slash from 'slash';
|
|
10
10
|
const w3cHtmlValidator = {
|
|
11
|
-
version: '2.0
|
|
11
|
+
version: '2.1.0',
|
|
12
12
|
defaultIgnoreList: [
|
|
13
|
-
'
|
|
13
|
+
'with computed level',
|
|
14
|
+
'Section lacks heading.',
|
|
14
15
|
],
|
|
15
16
|
assert(ok, message) {
|
|
16
17
|
if (!ok)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "w3c-html-validator",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "Check the markup validity of HTML files using the W3C validator",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -58,16 +58,16 @@
|
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
60
|
"chalk": "~5.6",
|
|
61
|
-
"cli-argv-util": "~1.
|
|
61
|
+
"cli-argv-util": "~1.4",
|
|
62
62
|
"fancy-log": "~2.0",
|
|
63
|
-
"glob": "~
|
|
63
|
+
"glob": "~13.0",
|
|
64
64
|
"slash": "~5.1",
|
|
65
65
|
"superagent": "~10.2"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"@eslint/js": "~9.39",
|
|
69
69
|
"@types/fancy-log": "~2.0",
|
|
70
|
-
"@types/node": "~
|
|
70
|
+
"@types/node": "~25.0",
|
|
71
71
|
"@types/superagent": "~8.1",
|
|
72
72
|
"add-dist-header": "~1.6",
|
|
73
73
|
"assert-deep-strict-equal": "~1.2",
|
|
@@ -79,6 +79,6 @@
|
|
|
79
79
|
"rimraf": "~6.1",
|
|
80
80
|
"run-scripts-util": "~1.3",
|
|
81
81
|
"typescript": "~5.9",
|
|
82
|
-
"typescript-eslint": "~8.
|
|
82
|
+
"typescript-eslint": "~8.51"
|
|
83
83
|
}
|
|
84
84
|
}
|