@markuplint/html-spec 2.3.0 → 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 +62 -35
- package/package.json +4 -4
- package/src/aria-in-html/body.json +1 -1
- package/src/aria-in-html/html.json +1 -1
- package/src/aria-in-html/img.json +2 -2
- package/src/attributes/iframe.json +1 -1
- package/src/attributes/img.json +1 -1
- package/src/attributes/link.json +10 -1
- package/src/attributes/script.json +1 -1
- package/src/attributes/svg_symbol.json +2 -4
- package/src/global-attributes/_global.json +19 -0
package/index.json
CHANGED
|
@@ -270,6 +270,12 @@
|
|
|
270
270
|
},
|
|
271
271
|
"hidden": {
|
|
272
272
|
"ref": "https://html.spec.whatwg.org/multipage/interaction.html#attr-hidden",
|
|
273
|
+
"type": {
|
|
274
|
+
"enum": ["", "hidden", "until-found"]
|
|
275
|
+
}
|
|
276
|
+
},
|
|
277
|
+
"inert": {
|
|
278
|
+
"ref": "https://html.spec.whatwg.org/multipage/interaction.html#the-inert-attribute",
|
|
273
279
|
"type": "Boolean"
|
|
274
280
|
},
|
|
275
281
|
"inputmode": {
|
|
@@ -406,6 +412,10 @@
|
|
|
406
412
|
"ref": "https://w3c.github.io/uievents/#beforeinput",
|
|
407
413
|
"type": "FunctionBody"
|
|
408
414
|
},
|
|
415
|
+
"onbeforematch": {
|
|
416
|
+
"ref": "https://html.spec.whatwg.org/multipage/webappapis.html#handler-onbeforematch",
|
|
417
|
+
"type": "FunctionBody"
|
|
418
|
+
},
|
|
409
419
|
"onblur": {
|
|
410
420
|
"ref": "https://html.spec.whatwg.org/multipage/webappapis.html#handler-onabort",
|
|
411
421
|
"type": "FunctionBody"
|
|
@@ -831,6 +841,15 @@
|
|
|
831
841
|
"anonymous": [""]
|
|
832
842
|
}
|
|
833
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
|
|
834
853
|
}
|
|
835
854
|
},
|
|
836
855
|
"#HTMLEmbededAndMediaContentAttrs": {
|
|
@@ -10575,7 +10594,7 @@
|
|
|
10575
10594
|
"deprecated": true
|
|
10576
10595
|
},
|
|
10577
10596
|
"download": {
|
|
10578
|
-
"description": "
|
|
10597
|
+
"description": "Causes the browser to treat the linked URL as a download. Can be used with or without a value: Without a value, the browser will suggest a filename/extension, generated from various sources: The Content-Disposition HTTP header The final segment in the URL path The media type (from the Content-Type header, the start of a data: URL, or Blob.type for a blob: URL) Defining a value suggests it as the filename. / and \\ characters are converted to underscores (_). Filesystems may forbid other characters in filenames, so browsers will adjust the suggested name if necessary. Note: download only works for same-origin URLs, or the blob: and data: schemes. How browsers treat downloads varies by browser, user settings, and other factors. The user may be prompted before a download starts, or the file may be saved automatically, or it may open automatically, either in an external application or in the browser itself. If the Content-Disposition header has different information from the download attribute, resulting behavior may differ: If the header specifies a filename, it takes priority over a filename specified in the download attribute. If the header specifies a disposition of inline, Chrome and Firefox prioritize the attribute and treat it as a download. Old Firefox versions (before 82) prioritize the header and will display the content inline."
|
|
10579
10598
|
},
|
|
10580
10599
|
"href": {
|
|
10581
10600
|
"description": "The URL that the hyperlink points to. Links are not restricted to HTTP-based URLs — they can use any URL scheme supported by browsers: Sections of a page with fragment URLs Pieces of media files with media fragments Telephone numbers with tel: URLs Email addresses with mailto: URLs While web browsers may not support other URL schemes, web sites can with registerProtocolHandler()"
|
|
@@ -11315,8 +11334,8 @@
|
|
|
11315
11334
|
"roles": false
|
|
11316
11335
|
},
|
|
11317
11336
|
"implicitRole": {
|
|
11318
|
-
"summary": "
|
|
11319
|
-
"role": "
|
|
11337
|
+
"summary": "generic",
|
|
11338
|
+
"role": "generic"
|
|
11320
11339
|
},
|
|
11321
11340
|
"omittion": false,
|
|
11322
11341
|
"globalAttrs": {
|
|
@@ -11327,27 +11346,27 @@
|
|
|
11327
11346
|
},
|
|
11328
11347
|
"attributes": {
|
|
11329
11348
|
"alink": {
|
|
11330
|
-
"description": "Color of text for hyperlinks when selected.
|
|
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.",
|
|
11331
11350
|
"deprecated": true
|
|
11332
11351
|
},
|
|
11333
11352
|
"background": {
|
|
11334
|
-
"description": "URI of a image to use as a background.
|
|
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.",
|
|
11335
11354
|
"deprecated": true
|
|
11336
11355
|
},
|
|
11337
11356
|
"bgcolor": {
|
|
11338
|
-
"description": "Background color for the document.
|
|
11357
|
+
"description": "Background color for the document. Do not use this attribute! Use the CSS background-color property on the element instead.",
|
|
11339
11358
|
"deprecated": true
|
|
11340
11359
|
},
|
|
11341
11360
|
"bottommargin": {
|
|
11342
|
-
"description": "The margin of the bottom of the body.
|
|
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.",
|
|
11343
11362
|
"deprecated": true
|
|
11344
11363
|
},
|
|
11345
11364
|
"leftmargin": {
|
|
11346
|
-
"description": "The margin of the left of the body.
|
|
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.",
|
|
11347
11366
|
"deprecated": true
|
|
11348
11367
|
},
|
|
11349
11368
|
"link": {
|
|
11350
|
-
"description": "Color of text for unvisited hypertext links.
|
|
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.",
|
|
11351
11370
|
"deprecated": true
|
|
11352
11371
|
},
|
|
11353
11372
|
"onafterprint": {
|
|
@@ -11436,19 +11455,19 @@
|
|
|
11436
11455
|
"type": "FunctionBody"
|
|
11437
11456
|
},
|
|
11438
11457
|
"rightmargin": {
|
|
11439
|
-
"description": "The margin of the right of the body.
|
|
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.",
|
|
11440
11459
|
"deprecated": true
|
|
11441
11460
|
},
|
|
11442
11461
|
"text": {
|
|
11443
|
-
"description": "Foreground color of text.
|
|
11462
|
+
"description": "Foreground color of text. Do not use this attribute! Use CSS color property on the element instead.",
|
|
11444
11463
|
"deprecated": true
|
|
11445
11464
|
},
|
|
11446
11465
|
"topmargin": {
|
|
11447
|
-
"description": "The margin of the top of the body.
|
|
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.",
|
|
11448
11467
|
"deprecated": true
|
|
11449
11468
|
},
|
|
11450
11469
|
"vlink": {
|
|
11451
|
-
"description": "Color of text for visited hypertext links.
|
|
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.",
|
|
11452
11471
|
"deprecated": true
|
|
11453
11472
|
}
|
|
11454
11473
|
}
|
|
@@ -11488,7 +11507,7 @@
|
|
|
11488
11507
|
{
|
|
11489
11508
|
"name": "button",
|
|
11490
11509
|
"cite": "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button",
|
|
11491
|
-
"description": "The <button> HTML element
|
|
11510
|
+
"description": "The <button> HTML element is an interactive element activated by a user with a mouse, keyboard, finger, voice command, or other assistive technology. Once activated, it then performs a programmable action, such as submitting a form or opening a dialog.",
|
|
11492
11511
|
"categories": ["#flow", "#phrasing", "#interactive", "#palpable"],
|
|
11493
11512
|
"permittedStructures": {
|
|
11494
11513
|
"summary": "Phrasing content but there must be no Interactive content",
|
|
@@ -13150,8 +13169,8 @@
|
|
|
13150
13169
|
"roles": false
|
|
13151
13170
|
},
|
|
13152
13171
|
"implicitRole": {
|
|
13153
|
-
"summary": "
|
|
13154
|
-
"role":
|
|
13172
|
+
"summary": "document",
|
|
13173
|
+
"role": "document"
|
|
13155
13174
|
},
|
|
13156
13175
|
"omittion": false,
|
|
13157
13176
|
"globalAttrs": {
|
|
@@ -13234,7 +13253,7 @@
|
|
|
13234
13253
|
"#GlobalEventAttrs": true,
|
|
13235
13254
|
"#HTMLEmbededAndMediaContentAttrs": ["src", "height", "width"],
|
|
13236
13255
|
"#HTMLGlobalAttrs": true,
|
|
13237
|
-
"#HTMLLinkAndFetchingAttrs": ["referrerpolicy", "loading"]
|
|
13256
|
+
"#HTMLLinkAndFetchingAttrs": ["referrerpolicy", "loading", "fetchpriority"]
|
|
13238
13257
|
},
|
|
13239
13258
|
"attributes": {
|
|
13240
13259
|
"align": {
|
|
@@ -13256,6 +13275,9 @@
|
|
|
13256
13275
|
"description": "A Content Security Policy enforced for the embedded resource. See HTMLIFrameElement.csp for details.",
|
|
13257
13276
|
"experimental": true
|
|
13258
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
|
+
},
|
|
13259
13281
|
"frameborder": {
|
|
13260
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.",
|
|
13261
13283
|
"deprecated": true
|
|
@@ -13386,7 +13408,7 @@
|
|
|
13386
13408
|
"conditions": [
|
|
13387
13409
|
{
|
|
13388
13410
|
"condition": "[alt=\"\"]",
|
|
13389
|
-
"roles":
|
|
13411
|
+
"roles": false
|
|
13390
13412
|
},
|
|
13391
13413
|
{
|
|
13392
13414
|
"condition": ":not([alt])",
|
|
@@ -13395,12 +13417,12 @@
|
|
|
13395
13417
|
]
|
|
13396
13418
|
},
|
|
13397
13419
|
"implicitRole": {
|
|
13398
|
-
"summary": "with non-empty alt attribute or no alt attribute: img with empty alt attribute:
|
|
13420
|
+
"summary": "with non-empty alt attribute or no alt attribute: img with empty alt attribute: presentation",
|
|
13399
13421
|
"role": "img",
|
|
13400
13422
|
"conditions": [
|
|
13401
13423
|
{
|
|
13402
13424
|
"condition": "[alt=\"\"]",
|
|
13403
|
-
"role":
|
|
13425
|
+
"role": "presentation"
|
|
13404
13426
|
}
|
|
13405
13427
|
]
|
|
13406
13428
|
},
|
|
@@ -13411,7 +13433,7 @@
|
|
|
13411
13433
|
"#GlobalEventAttrs": true,
|
|
13412
13434
|
"#HTMLEmbededAndMediaContentAttrs": ["src", "height", "srcset", "sizes", "width"],
|
|
13413
13435
|
"#HTMLGlobalAttrs": true,
|
|
13414
|
-
"#HTMLLinkAndFetchingAttrs": ["crossorigin", "referrerpolicy", "loading"]
|
|
13436
|
+
"#HTMLLinkAndFetchingAttrs": ["crossorigin", "referrerpolicy", "loading", "fetchpriority"]
|
|
13415
13437
|
},
|
|
13416
13438
|
"attributes": {
|
|
13417
13439
|
"align": {
|
|
@@ -13437,6 +13459,9 @@
|
|
|
13437
13459
|
"missingValueDefault": "auto"
|
|
13438
13460
|
}
|
|
13439
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
|
+
},
|
|
13440
13465
|
"height": {
|
|
13441
13466
|
"description": "The intrinsic height of the image, in pixels. Must be an integer without a unit."
|
|
13442
13467
|
},
|
|
@@ -14404,7 +14429,8 @@
|
|
|
14404
14429
|
"type",
|
|
14405
14430
|
"referrerpolicy",
|
|
14406
14431
|
"integrity",
|
|
14407
|
-
"media"
|
|
14432
|
+
"media",
|
|
14433
|
+
"fetchpriority"
|
|
14408
14434
|
]
|
|
14409
14435
|
},
|
|
14410
14436
|
"attributes": {
|
|
@@ -14465,6 +14491,9 @@
|
|
|
14465
14491
|
"ref": "https://html.spec.whatwg.org/multipage/semantics.html#attr-link-disabled",
|
|
14466
14492
|
"type": "Boolean"
|
|
14467
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
|
+
},
|
|
14468
14497
|
"href": {
|
|
14469
14498
|
"description": "This attribute specifies the URL of the linked resource. A URL can be absolute or relative."
|
|
14470
14499
|
},
|
|
@@ -14761,7 +14790,7 @@
|
|
|
14761
14790
|
{
|
|
14762
14791
|
"name": "menu",
|
|
14763
14792
|
"cite": "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/menu",
|
|
14764
|
-
"description": "The <menu> HTML element is a semantic alternative to <ul>. It represents an unordered list of items (represented by <li> elements), each of
|
|
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.",
|
|
14765
14794
|
"experimental": true,
|
|
14766
14795
|
"categories": ["#flow", "#palpable"],
|
|
14767
14796
|
"permittedStructures": {
|
|
@@ -14967,9 +14996,6 @@
|
|
|
14967
14996
|
"#HTMLGlobalAttrs": true
|
|
14968
14997
|
},
|
|
14969
14998
|
"attributes": {
|
|
14970
|
-
"form": {
|
|
14971
|
-
"description": "The <form> element to associate the <meter> element with (its form owner). The value of this attribute must be the id of a <form> in the same document. If this attribute is not set, the <meter> is associated with its ancestor <form> element, if any. This attribute is only used if the <meter> element is being used as a form-associated element, such as one displaying a range corresponding to an <input type=\"number\">."
|
|
14972
|
-
},
|
|
14973
14999
|
"high": {
|
|
14974
15000
|
"ref": "https://html.spec.whatwg.org/multipage/form-elements.html#attr-meter-high",
|
|
14975
15001
|
"type": "Number"
|
|
@@ -15687,7 +15713,7 @@
|
|
|
15687
15713
|
{
|
|
15688
15714
|
"name": "pre",
|
|
15689
15715
|
"cite": "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/pre",
|
|
15690
|
-
"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
|
|
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.",
|
|
15691
15717
|
"categories": ["#flow", "#palpable"],
|
|
15692
15718
|
"permittedStructures": {
|
|
15693
15719
|
"summary": "Phrasing content.",
|
|
@@ -16069,7 +16095,7 @@
|
|
|
16069
16095
|
"#DocumentElementEventAttrs": true,
|
|
16070
16096
|
"#GlobalEventAttrs": true,
|
|
16071
16097
|
"#HTMLGlobalAttrs": true,
|
|
16072
|
-
"#HTMLLinkAndFetchingAttrs": ["crossorigin", "referrerpolicy", "integrity"]
|
|
16098
|
+
"#HTMLLinkAndFetchingAttrs": ["crossorigin", "referrerpolicy", "integrity", "fetchpriority"]
|
|
16073
16099
|
},
|
|
16074
16100
|
"attributes": {
|
|
16075
16101
|
"async": {
|
|
@@ -16102,6 +16128,9 @@
|
|
|
16102
16128
|
"ineffective": ["[type='module' i]", ":not([src])", "[async]"],
|
|
16103
16129
|
"_TODO_": "The defer attribute affects the element that has the async attribute if it doesn't support the async"
|
|
16104
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
|
+
},
|
|
16105
16134
|
"integrity": {
|
|
16106
16135
|
"ref": "https://html.spec.whatwg.org/multipage/scripting.html#attr-script-integrity",
|
|
16107
16136
|
"condition": {
|
|
@@ -16202,7 +16231,7 @@
|
|
|
16202
16231
|
{
|
|
16203
16232
|
"name": "select",
|
|
16204
16233
|
"cite": "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select",
|
|
16205
|
-
"description": "The <select> HTML element represents a control that provides a menu of options
|
|
16234
|
+
"description": "The <select> HTML element represents a control that provides a menu of options.",
|
|
16206
16235
|
"categories": ["#flow", "#phrasing", "#interactive"],
|
|
16207
16236
|
"permittedStructures": {
|
|
16208
16237
|
"summary": "Zero or more <option> or <optgroup> elements.",
|
|
@@ -24614,7 +24643,7 @@
|
|
|
24614
24643
|
},
|
|
24615
24644
|
"refX": {
|
|
24616
24645
|
"ref": "https://svgwg.org/svg2-draft/struct.html#SymbolElementRefXAttribute",
|
|
24617
|
-
"description": "This attribute determines the x coordinate of the reference point of the symbol. Value type: <length>|<percentage>|left|center|right ; Default value:
|
|
24646
|
+
"description": "This attribute determines the x coordinate of the reference point of the symbol. Value type: <length>|<percentage>|left|center|right ; Default value: None; Animatable: yes",
|
|
24618
24647
|
"type": [
|
|
24619
24648
|
"<svg-length>",
|
|
24620
24649
|
"<percentage>",
|
|
@@ -24622,12 +24651,11 @@
|
|
|
24622
24651
|
{
|
|
24623
24652
|
"enum": ["left", "center", "right"]
|
|
24624
24653
|
}
|
|
24625
|
-
]
|
|
24626
|
-
"defaultValue": "0"
|
|
24654
|
+
]
|
|
24627
24655
|
},
|
|
24628
24656
|
"refY": {
|
|
24629
24657
|
"ref": "https://svgwg.org/svg2-draft/struct.html#SymbolElementRefYAttribute",
|
|
24630
|
-
"description": "This attribute determines the y coordinate of the reference point of the symbol. Value type: <length>|<percentage>|top|center|bottom ; Default value:
|
|
24658
|
+
"description": "This attribute determines the y coordinate of the reference point of the symbol. Value type: <length>|<percentage>|top|center|bottom ; Default value: None; Animatable: yes",
|
|
24631
24659
|
"type": [
|
|
24632
24660
|
"<svg-length>",
|
|
24633
24661
|
"<percentage>",
|
|
@@ -24635,8 +24663,7 @@
|
|
|
24635
24663
|
{
|
|
24636
24664
|
"enum": ["top", "center", "bottom"]
|
|
24637
24665
|
}
|
|
24638
|
-
]
|
|
24639
|
-
"defaultValue": "0"
|
|
24666
|
+
]
|
|
24640
24667
|
},
|
|
24641
24668
|
"height": {
|
|
24642
24669
|
"description": "This attribute determines the height of the symbol. Value type: <length>|<percentage> ; Default value: auto; Animatable: yes"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@markuplint/html-spec",
|
|
3
|
-
"version": "2.
|
|
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.
|
|
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.
|
|
29
|
+
"@markuplint/ml-spec": "2.1.0"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "0321513e36cc74929c41e06e1f58c43ff7602556"
|
|
32
32
|
}
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"conditions": [
|
|
20
20
|
{
|
|
21
21
|
"condition": "[alt=\"\"]",
|
|
22
|
-
"roles":
|
|
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":
|
|
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": {
|
package/src/attributes/img.json
CHANGED
|
@@ -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": {
|
package/src/attributes/link.json
CHANGED
|
@@ -6,7 +6,16 @@
|
|
|
6
6
|
"#GlobalEventAttrs": true,
|
|
7
7
|
"#DocumentElementEventAttrs": true,
|
|
8
8
|
"#ARIAAttrs": true,
|
|
9
|
-
"#HTMLLinkAndFetchingAttrs": [
|
|
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": {
|
|
@@ -28,8 +28,7 @@
|
|
|
28
28
|
{
|
|
29
29
|
"enum": ["left", "center", "right"]
|
|
30
30
|
}
|
|
31
|
-
]
|
|
32
|
-
"defaultValue": "0"
|
|
31
|
+
]
|
|
33
32
|
},
|
|
34
33
|
"refY": {
|
|
35
34
|
"ref": "https://svgwg.org/svg2-draft/struct.html#SymbolElementRefYAttribute",
|
|
@@ -40,8 +39,7 @@
|
|
|
40
39
|
{
|
|
41
40
|
"enum": ["top", "center", "bottom"]
|
|
42
41
|
}
|
|
43
|
-
]
|
|
44
|
-
"defaultValue": "0"
|
|
42
|
+
]
|
|
45
43
|
}
|
|
46
44
|
}
|
|
47
45
|
}
|
|
@@ -61,6 +61,12 @@
|
|
|
61
61
|
},
|
|
62
62
|
"hidden": {
|
|
63
63
|
"ref": "https://html.spec.whatwg.org/multipage/interaction.html#attr-hidden",
|
|
64
|
+
"type": {
|
|
65
|
+
"enum": ["", "hidden", "until-found"]
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"inert": {
|
|
69
|
+
"ref": "https://html.spec.whatwg.org/multipage/interaction.html#the-inert-attribute",
|
|
64
70
|
"type": "Boolean"
|
|
65
71
|
},
|
|
66
72
|
"inputmode": {
|
|
@@ -197,6 +203,10 @@
|
|
|
197
203
|
"ref": "https://w3c.github.io/uievents/#beforeinput",
|
|
198
204
|
"type": "FunctionBody"
|
|
199
205
|
},
|
|
206
|
+
"onbeforematch": {
|
|
207
|
+
"ref": "https://html.spec.whatwg.org/multipage/webappapis.html#handler-onbeforematch",
|
|
208
|
+
"type": "FunctionBody"
|
|
209
|
+
},
|
|
200
210
|
"onblur": {
|
|
201
211
|
"ref": "https://html.spec.whatwg.org/multipage/webappapis.html#handler-onabort",
|
|
202
212
|
"type": "FunctionBody"
|
|
@@ -622,6 +632,15 @@
|
|
|
622
632
|
"anonymous": [""]
|
|
623
633
|
}
|
|
624
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
|
|
625
644
|
}
|
|
626
645
|
},
|
|
627
646
|
"#HTMLEmbededAndMediaContentAttrs": {
|