@markuplint/html-spec 2.4.1 → 2.5.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/index.json CHANGED
@@ -841,6 +841,15 @@
841
841
  "anonymous": [""]
842
842
  }
843
843
  }
844
+ },
845
+ "fetchpriority": {
846
+ "ref": "https://wicg.github.io/priority-hints/#solution",
847
+ "type": {
848
+ "enum": ["high", "low", "auto"],
849
+ "invalidValueDefault": "auto",
850
+ "missingValueDefault": "auto"
851
+ },
852
+ "experimental": true
844
853
  }
845
854
  },
846
855
  "#HTMLEmbededAndMediaContentAttrs": {
@@ -11325,8 +11334,8 @@
11325
11334
  "roles": false
11326
11335
  },
11327
11336
  "implicitRole": {
11328
- "summary": "document",
11329
- "role": "document"
11337
+ "summary": "generic",
11338
+ "role": "generic"
11330
11339
  },
11331
11340
  "omittion": false,
11332
11341
  "globalAttrs": {
@@ -11337,27 +11346,27 @@
11337
11346
  },
11338
11347
  "attributes": {
11339
11348
  "alink": {
11340
- "description": "Color of text for hyperlinks when selected. This method is non-conforming, use CSS color property in conjunction with the :active pseudo-class instead.",
11349
+ "description": "Color of text for hyperlinks when selected. Do not use this attribute! Use the CSS color property in conjunction with the :active pseudo-class instead.",
11341
11350
  "deprecated": true
11342
11351
  },
11343
11352
  "background": {
11344
- "description": "URI of a image to use as a background. This method is non-conforming, use CSS background property on the element instead.",
11353
+ "description": "URI of a image to use as a background. Do not use this attribute! Use the CSS background property on the element instead.",
11345
11354
  "deprecated": true
11346
11355
  },
11347
11356
  "bgcolor": {
11348
- "description": "Background color for the document. This method is non-conforming, use CSS background-color property on the element instead.",
11357
+ "description": "Background color for the document. Do not use this attribute! Use the CSS background-color property on the element instead.",
11349
11358
  "deprecated": true
11350
11359
  },
11351
11360
  "bottommargin": {
11352
- "description": "The margin of the bottom of the body. This method is non-conforming, use CSS margin-bottom property on the element instead.",
11361
+ "description": "The margin of the bottom of the body. Do not use this attribute! Use the CSS margin-bottom property on the element instead.",
11353
11362
  "deprecated": true
11354
11363
  },
11355
11364
  "leftmargin": {
11356
- "description": "The margin of the left of the body. This method is non-conforming, use CSS margin-left property on the element instead.",
11365
+ "description": "The margin of the left of the body. Do not use this attribute! Use the CSS margin-left property on the element instead.",
11357
11366
  "deprecated": true
11358
11367
  },
11359
11368
  "link": {
11360
- "description": "Color of text for unvisited hypertext links. This method is non-conforming, use CSS color property in conjunction with the :link pseudo-class instead.",
11369
+ "description": "Color of text for unvisited hypertext links. Do not use this attribute! Use the CSS color property in conjunction with the :link pseudo-class instead.",
11361
11370
  "deprecated": true
11362
11371
  },
11363
11372
  "onafterprint": {
@@ -11446,19 +11455,19 @@
11446
11455
  "type": "FunctionBody"
11447
11456
  },
11448
11457
  "rightmargin": {
11449
- "description": "The margin of the right of the body. This method is non-conforming, use CSS margin-right property on the element instead.",
11458
+ "description": "The margin of the right of the body. Do not use this attribute! Use the CSS margin-right property on the element instead.",
11450
11459
  "deprecated": true
11451
11460
  },
11452
11461
  "text": {
11453
- "description": "Foreground color of text. This method is non-conforming, use CSS color property on the element instead.",
11462
+ "description": "Foreground color of text. Do not use this attribute! Use CSS color property on the element instead.",
11454
11463
  "deprecated": true
11455
11464
  },
11456
11465
  "topmargin": {
11457
- "description": "The margin of the top of the body. This method is non-conforming, use CSS margin-top property on the element instead.",
11466
+ "description": "The margin of the top of the body. Do not use this attribute! Use the CSS margin-top property on the element instead.",
11458
11467
  "deprecated": true
11459
11468
  },
11460
11469
  "vlink": {
11461
- "description": "Color of text for visited hypertext links. This method is non-conforming, use CSS color property in conjunction with the :visited pseudo-class instead.",
11470
+ "description": "Color of text for visited hypertext links. Do not use this attribute! Use the CSS color property in conjunction with the :visited pseudo-class instead.",
11462
11471
  "deprecated": true
11463
11472
  }
11464
11473
  }
@@ -13160,8 +13169,8 @@
13160
13169
  "roles": false
13161
13170
  },
13162
13171
  "implicitRole": {
13163
- "summary": "No corresponding role",
13164
- "role": false
13172
+ "summary": "document",
13173
+ "role": "document"
13165
13174
  },
13166
13175
  "omittion": false,
13167
13176
  "globalAttrs": {
@@ -13244,7 +13253,7 @@
13244
13253
  "#GlobalEventAttrs": true,
13245
13254
  "#HTMLEmbededAndMediaContentAttrs": ["src", "height", "width"],
13246
13255
  "#HTMLGlobalAttrs": true,
13247
- "#HTMLLinkAndFetchingAttrs": ["referrerpolicy", "loading"]
13256
+ "#HTMLLinkAndFetchingAttrs": ["referrerpolicy", "loading", "fetchpriority"]
13248
13257
  },
13249
13258
  "attributes": {
13250
13259
  "align": {
@@ -13266,6 +13275,9 @@
13266
13275
  "description": "A Content Security Policy enforced for the embedded resource. See HTMLIFrameElement.csp for details.",
13267
13276
  "experimental": true
13268
13277
  },
13278
+ "fetchpriority": {
13279
+ "description": "Provides a hint of the relative priority to use when fetching the iframe document. Allowed values: high Signals a high-priority fetch relative to other iframe documents. low Signals a low-priority fetch relative to other iframe documents. auto Default: Signals automatic determination of fetch priority relative to other iframe documents."
13280
+ },
13269
13281
  "frameborder": {
13270
13282
  "description": "The value 1 (the default) draws a border around this frame. The value 0 removes the border around this frame, but you should instead use the CSS property border to control <iframe> borders.",
13271
13283
  "deprecated": true
@@ -13396,7 +13408,7 @@
13396
13408
  "conditions": [
13397
13409
  {
13398
13410
  "condition": "[alt=\"\"]",
13399
- "roles": ["none", "presentation"]
13411
+ "roles": false
13400
13412
  },
13401
13413
  {
13402
13414
  "condition": ":not([alt])",
@@ -13405,12 +13417,12 @@
13405
13417
  ]
13406
13418
  },
13407
13419
  "implicitRole": {
13408
- "summary": "with non-empty alt attribute or no alt attribute: img with empty alt attribute: no corresponding role",
13420
+ "summary": "with non-empty alt attribute or no alt attribute: img with empty alt attribute: presentation",
13409
13421
  "role": "img",
13410
13422
  "conditions": [
13411
13423
  {
13412
13424
  "condition": "[alt=\"\"]",
13413
- "role": false
13425
+ "role": "presentation"
13414
13426
  }
13415
13427
  ]
13416
13428
  },
@@ -13421,7 +13433,7 @@
13421
13433
  "#GlobalEventAttrs": true,
13422
13434
  "#HTMLEmbededAndMediaContentAttrs": ["src", "height", "srcset", "sizes", "width"],
13423
13435
  "#HTMLGlobalAttrs": true,
13424
- "#HTMLLinkAndFetchingAttrs": ["crossorigin", "referrerpolicy", "loading"]
13436
+ "#HTMLLinkAndFetchingAttrs": ["crossorigin", "referrerpolicy", "loading", "fetchpriority"]
13425
13437
  },
13426
13438
  "attributes": {
13427
13439
  "align": {
@@ -13447,6 +13459,9 @@
13447
13459
  "missingValueDefault": "auto"
13448
13460
  }
13449
13461
  },
13462
+ "fetchpriority": {
13463
+ "description": "Provides a hint of the relative priority to use when fetching the image. Allowed values: high Signals a high-priority fetch relative to other images. low Signals a low-priority fetch relative to other images. auto Default: Signals automatic determination of fetch priority relative to other images."
13464
+ },
13450
13465
  "height": {
13451
13466
  "description": "The intrinsic height of the image, in pixels. Must be an integer without a unit."
13452
13467
  },
@@ -14414,7 +14429,8 @@
14414
14429
  "type",
14415
14430
  "referrerpolicy",
14416
14431
  "integrity",
14417
- "media"
14432
+ "media",
14433
+ "fetchpriority"
14418
14434
  ]
14419
14435
  },
14420
14436
  "attributes": {
@@ -14475,6 +14491,9 @@
14475
14491
  "ref": "https://html.spec.whatwg.org/multipage/semantics.html#attr-link-disabled",
14476
14492
  "type": "Boolean"
14477
14493
  },
14494
+ "fetchpriority": {
14495
+ "description": "Provides a hint of the relative priority to use when fetching a preloaded resource. Allowed values: high Signals a high-priority fetch relative to other resources of the same type. low Signals a low-priority fetch relative to other resources of the same type. auto Default: Signals automatic determination of fetch priority relative to other resources of the same type."
14496
+ },
14478
14497
  "href": {
14479
14498
  "description": "This attribute specifies the URL of the linked resource. A URL can be absolute or relative."
14480
14499
  },
@@ -14771,7 +14790,7 @@
14771
14790
  {
14772
14791
  "name": "menu",
14773
14792
  "cite": "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/menu",
14774
- "description": "The <menu> HTML element is a semantic alternative to <ul>. It represents an unordered list of items (represented by <li> elements), each of these represent a link or other command that the user can activate.",
14793
+ "description": "The <menu> HTML element is a semantic alternative to <ul>. It represents an unordered list of items (represented by <li> elements), each of which represents a link or other command that the user can activate.",
14775
14794
  "experimental": true,
14776
14795
  "categories": ["#flow", "#palpable"],
14777
14796
  "permittedStructures": {
@@ -15694,7 +15713,7 @@
15694
15713
  {
15695
15714
  "name": "pre",
15696
15715
  "cite": "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/pre",
15697
- "description": "The <pre> HTML element represents preformatted text which is to be presented exactly as written in the HTML file. The text is typically rendered using a non-proportional, or \"monospaced, font. Whitespace inside this element is displayed as written.",
15716
+ "description": "The <pre> HTML element represents preformatted text which is to be presented exactly as written in the HTML file. The text is typically rendered using a non-proportional, or monospaced, font. Whitespace inside this element is displayed as written.",
15698
15717
  "categories": ["#flow", "#palpable"],
15699
15718
  "permittedStructures": {
15700
15719
  "summary": "Phrasing content.",
@@ -16076,7 +16095,7 @@
16076
16095
  "#DocumentElementEventAttrs": true,
16077
16096
  "#GlobalEventAttrs": true,
16078
16097
  "#HTMLGlobalAttrs": true,
16079
- "#HTMLLinkAndFetchingAttrs": ["crossorigin", "referrerpolicy", "integrity"]
16098
+ "#HTMLLinkAndFetchingAttrs": ["crossorigin", "referrerpolicy", "integrity", "fetchpriority"]
16080
16099
  },
16081
16100
  "attributes": {
16082
16101
  "async": {
@@ -16109,6 +16128,9 @@
16109
16128
  "ineffective": ["[type='module' i]", ":not([src])", "[async]"],
16110
16129
  "_TODO_": "The defer attribute affects the element that has the async attribute if it doesn't support the async"
16111
16130
  },
16131
+ "fetchpriority": {
16132
+ "description": "Provides a hint of the relative priority to use when fetching an external script. Allowed values: high Signals a high-priority fetch relative to other external scripts.. low Signals a low-priority fetch relative to other external scripts. auto Default: Signals automatic determination of fetch priority relative to other external scripts."
16133
+ },
16112
16134
  "integrity": {
16113
16135
  "ref": "https://html.spec.whatwg.org/multipage/scripting.html#attr-script-integrity",
16114
16136
  "condition": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@markuplint/html-spec",
3
- "version": "2.4.1",
3
+ "version": "2.5.0",
4
4
  "description": "A specification of HTML Living Standard for markuplint",
5
5
  "repository": "git@github.com:markuplint/markuplint.git",
6
6
  "author": "Yusuke Hirao <yusukehirao@me.com>",
@@ -21,12 +21,12 @@
21
21
  "@types/node-fetch": "2",
22
22
  "cheerio": "^1.0.0-rc.10",
23
23
  "cli-progress": "^3.10.0",
24
- "fast-xml-parser": "^4.0.2",
24
+ "fast-xml-parser": "^4.0.7",
25
25
  "jsonschema": "^1.4.0",
26
26
  "node-fetch": "2"
27
27
  },
28
28
  "dependencies": {
29
- "@markuplint/ml-spec": "^2.0.2"
29
+ "@markuplint/ml-spec": "2.1.0"
30
30
  },
31
- "gitHead": "76939e9a8278829f1871a117f8c0cbc9777db7c2"
31
+ "gitHead": "0321513e36cc74929c41e06e1f58c43ff7602556"
32
32
  }
@@ -3,6 +3,6 @@
3
3
  "roles": false
4
4
  },
5
5
  "implicitRole": {
6
- "role": "document"
6
+ "role": "generic"
7
7
  }
8
8
  }
@@ -3,6 +3,6 @@
3
3
  "roles": false
4
4
  },
5
5
  "implicitRole": {
6
- "role": false
6
+ "role": "document"
7
7
  }
8
8
  }
@@ -19,7 +19,7 @@
19
19
  "conditions": [
20
20
  {
21
21
  "condition": "[alt=\"\"]",
22
- "roles": ["none", "presentation"]
22
+ "roles": false
23
23
  },
24
24
  {
25
25
  "condition": ":not([alt])",
@@ -32,7 +32,7 @@
32
32
  "conditions": [
33
33
  {
34
34
  "condition": "[alt=\"\"]",
35
- "role": false
35
+ "role": "presentation"
36
36
  }
37
37
  ]
38
38
  }
@@ -7,7 +7,7 @@
7
7
  "#DocumentElementEventAttrs": true,
8
8
  "#ARIAAttrs": true,
9
9
  "#HTMLEmbededAndMediaContentAttrs": ["src", "height", "width"],
10
- "#HTMLLinkAndFetchingAttrs": ["referrerpolicy", "loading"]
10
+ "#HTMLLinkAndFetchingAttrs": ["referrerpolicy", "loading", "fetchpriority"]
11
11
  },
12
12
  "attributes": {
13
13
  "src": {
@@ -7,7 +7,7 @@
7
7
  "#DocumentElementEventAttrs": true,
8
8
  "#ARIAAttrs": true,
9
9
  "#HTMLEmbededAndMediaContentAttrs": ["src", "height", "srcset", "sizes", "width"],
10
- "#HTMLLinkAndFetchingAttrs": ["crossorigin", "referrerpolicy", "loading"]
10
+ "#HTMLLinkAndFetchingAttrs": ["crossorigin", "referrerpolicy", "loading", "fetchpriority"]
11
11
  },
12
12
  "attributes": {
13
13
  "alt": {
@@ -6,7 +6,16 @@
6
6
  "#GlobalEventAttrs": true,
7
7
  "#DocumentElementEventAttrs": true,
8
8
  "#ARIAAttrs": true,
9
- "#HTMLLinkAndFetchingAttrs": ["crossorigin", "href", "hreflang", "type", "referrerpolicy", "integrity", "media"]
9
+ "#HTMLLinkAndFetchingAttrs": [
10
+ "crossorigin",
11
+ "href",
12
+ "hreflang",
13
+ "type",
14
+ "referrerpolicy",
15
+ "integrity",
16
+ "media",
17
+ "fetchpriority"
18
+ ]
10
19
  },
11
20
  "attributes": {
12
21
  "rel": {
@@ -6,7 +6,7 @@
6
6
  "#GlobalEventAttrs": true,
7
7
  "#DocumentElementEventAttrs": true,
8
8
  "#ARIAAttrs": true,
9
- "#HTMLLinkAndFetchingAttrs": ["crossorigin", "referrerpolicy", "integrity"]
9
+ "#HTMLLinkAndFetchingAttrs": ["crossorigin", "referrerpolicy", "integrity", "fetchpriority"]
10
10
  },
11
11
  "attributes": {
12
12
  "src": {
@@ -632,6 +632,15 @@
632
632
  "anonymous": [""]
633
633
  }
634
634
  }
635
+ },
636
+ "fetchpriority": {
637
+ "ref": "https://wicg.github.io/priority-hints/#solution",
638
+ "type": {
639
+ "enum": ["high", "low", "auto"],
640
+ "invalidValueDefault": "auto",
641
+ "missingValueDefault": "auto"
642
+ },
643
+ "experimental": true
635
644
  }
636
645
  },
637
646
  "#HTMLEmbededAndMediaContentAttrs": {