@markuplint/html-spec 2.0.0 → 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/index.json CHANGED
@@ -10586,14 +10586,14 @@
10586
10586
  "deprecated": true
10587
10587
  },
10588
10588
  "shape": {
10589
- "description": "The shape of the hyperlinks region in an image map. Note: Use the <area> element for image maps instead.",
10589
+ "description": "The shape of the hyperlink's region in an image map. Note: Use the <area> element for image maps instead.",
10590
10590
  "deprecated": true
10591
10591
  },
10592
10592
  "target": {
10593
- "description": "Where to display the linked URL, as the name for a browsing context (a tab, window, or <iframe>). The following keywords have special meanings for where to load the URL: _self: the current browsing context. (Default) _blank: usually a new tab, but users can configure browsers to open a new window instead. _parent: the parent browsing context of the current one. If no parent, behaves as _self. _top: the topmost browsing context (the \"highest\" context thats an ancestor of the current one). If no ancestors, behaves as _self. Note: Setting target=\"_blank\" on <a> elements implicitly provides the same rel behavior as setting rel=\"noopener\" which does not set window.opener. See browser compatibility for support status."
10593
+ "description": "Where to display the linked URL, as the name for a browsing context (a tab, window, or <iframe>). The following keywords have special meanings for where to load the URL: _self: the current browsing context. (Default) _blank: usually a new tab, but users can configure browsers to open a new window instead. _parent: the parent browsing context of the current one. If no parent, behaves as _self. _top: the topmost browsing context (the \"highest\" context that's an ancestor of the current one). If no ancestors, behaves as _self. Note: Setting target=\"_blank\" on <a> elements implicitly provides the same rel behavior as setting rel=\"noopener\" which does not set window.opener. See browser compatibility for support status."
10594
10594
  },
10595
10595
  "type": {
10596
- "description": "Hints at the linked URLs format with a MIME type. No built-in functionality."
10596
+ "description": "Hints at the linked URL's format with a MIME type. No built-in functionality."
10597
10597
  }
10598
10598
  }
10599
10599
  },
@@ -10671,7 +10671,7 @@
10671
10671
  "roles": true
10672
10672
  },
10673
10673
  "implicitRole": {
10674
- "summary": "",
10674
+ "summary": "No corresponding role",
10675
10675
  "role": false
10676
10676
  },
10677
10677
  "omittion": false,
@@ -10904,7 +10904,7 @@
10904
10904
  "roles": ["feed", "none", "note", "presentation", "region", "search"]
10905
10905
  },
10906
10906
  "implicitRole": {
10907
- "summary": "",
10907
+ "summary": "complementary",
10908
10908
  "role": "complementary"
10909
10909
  },
10910
10910
  "omittion": false,
@@ -11538,19 +11538,19 @@
11538
11538
  "description": "The URL that processes the information submitted by the button. Overrides the action attribute of the button's form owner. Does nothing if there is no form owner."
11539
11539
  },
11540
11540
  "formenctype": {
11541
- "description": "If the button is a submit button (it's inside/associated with a <form> and doesn't have type=\"button\"), specifies how to encode the form data that is submitted. Possible values: application/x-www-form-urlencoded: The default if the attribute is not used. multipart/form-data: Use to submit <input> elements with their type attributes set to file. text/plain: Specified as a debugging aid; shouldnt be used for real form submission. If this attribute is specified, it overrides the enctype attribute of the button's form owner."
11541
+ "description": "If the button is a submit button (it's inside/associated with a <form> and doesn't have type=\"button\"), specifies how to encode the form data that is submitted. Possible values: application/x-www-form-urlencoded: The default if the attribute is not used. multipart/form-data: Use to submit <input> elements with their type attributes set to file. text/plain: Specified as a debugging aid; shouldn't be used for real form submission. If this attribute is specified, it overrides the enctype attribute of the button's form owner."
11542
11542
  },
11543
11543
  "formmethod": {
11544
- "description": "If the button is a submit button (it's inside/associated with a <form> and doesn't have type=\"button\"), this attribute specifies the HTTP method used to submit the form. Possible values: post: The data from the form are included in the body of the HTTP request when sent to the server. Use when the form contains information that shouldnt be public, like login credentials. get: The form data are appended to the form's action URL, with a ? as a separator, and the resulting URL is sent to the server. Use this method when the form has no side effects, like search forms. If specified, this attribute overrides the method attribute of the button's form owner."
11544
+ "description": "If the button is a submit button (it's inside/associated with a <form> and doesn't have type=\"button\"), this attribute specifies the HTTP method used to submit the form. Possible values: post: The data from the form are included in the body of the HTTP request when sent to the server. Use when the form contains information that shouldn't be public, like login credentials. get: The form data are appended to the form's action URL, with a ? as a separator, and the resulting URL is sent to the server. Use this method when the form has no side effects, like search forms. If specified, this attribute overrides the method attribute of the button's form owner."
11545
11545
  },
11546
11546
  "formnovalidate": {
11547
11547
  "description": "If the button is a submit button, this Boolean attribute specifies that the form is not to be validated when it is submitted. If this attribute is specified, it overrides the novalidate attribute of the button's form owner. This attribute is also available on <input type=\"image\"> and <input type=\"submit\"> elements."
11548
11548
  },
11549
11549
  "formtarget": {
11550
- "description": "If the button is a submit button, this attribute is an author-defined name or standardized, underscore-prefixed keyword indicating where to display the response from submitting the form. This is the name of, or keyword for, a browsing context (a tab, window, or <iframe>). If this attribute is specified, it overrides the target attribute of the button's form owner. The following keywords have special meanings: _self: Load the response into the same browsing context as the current one. This is the default if the attribute is not specified. _blank: Load the response into a new unnamed browsing context — usually a new tab or window, depending on the users browser settings. _parent: Load the response into the parent browsing context of the current one. If there is no parent, this option behaves the same way as _self. _top: Load the response into the top-level browsing context (that is, the browsing context that is an ancestor of the current one, and has no parent). If there is no parent, this option behaves the same way as _self."
11550
+ "description": "If the button is a submit button, this attribute is an author-defined name or standardized, underscore-prefixed keyword indicating where to display the response from submitting the form. This is the name of, or keyword for, a browsing context (a tab, window, or <iframe>). If this attribute is specified, it overrides the target attribute of the button's form owner. The following keywords have special meanings: _self: Load the response into the same browsing context as the current one. This is the default if the attribute is not specified. _blank: Load the response into a new unnamed browsing context — usually a new tab or window, depending on the user's browser settings. _parent: Load the response into the parent browsing context of the current one. If there is no parent, this option behaves the same way as _self. _top: Load the response into the top-level browsing context (that is, the browsing context that is an ancestor of the current one, and has no parent). If there is no parent, this option behaves the same way as _self."
11551
11551
  },
11552
11552
  "name": {
11553
- "description": "The name of the button, submitted as a pair with the buttons value as part of the form data, when that button is used to submit the form."
11553
+ "description": "The name of the button, submitted as a pair with the button's value as part of the form data, when that button is used to submit the form."
11554
11554
  },
11555
11555
  "type": {
11556
11556
  "ref": "https://html.spec.whatwg.org/multipage/form-elements.html#attr-button-type",
@@ -11760,7 +11760,7 @@
11760
11760
  "deprecated": true
11761
11761
  },
11762
11762
  "bgcolor": {
11763
- "description": "The background color of the table. It is a 6-digit hexadecimal RGB code, prefixed by a '#'. One of the predefined color kewords can also be used. To achieve a similar effect, use the CSS background-color property.",
11763
+ "description": "The background color of the table. It is a 6-digit hexadecimal RGB code, prefixed by a '#'. One of the predefined color keywords can also be used. To achieve a similar effect, use the CSS background-color property.",
11764
11764
  "deprecated": true
11765
11765
  },
11766
11766
  "char": {
@@ -11834,7 +11834,7 @@
11834
11834
  "deprecated": true
11835
11835
  },
11836
11836
  "bgcolor": {
11837
- "description": "The background color of the table. It is a 6-digit hexadecimal RGB code, prefixed by a '#'. One of the predefined color kewords can also be used. To achieve a similar effect, use the CSS background-color property.",
11837
+ "description": "The background color of the table. It is a 6-digit hexadecimal RGB code, prefixed by a '#'. One of the predefined color keywords can also be used. To achieve a similar effect, use the CSS background-color property.",
11838
11838
  "deprecated": true
11839
11839
  },
11840
11840
  "char": {
@@ -12735,7 +12735,7 @@
12735
12735
  "globalAttrs": {},
12736
12736
  "attributes": {
12737
12737
  "frameborder": {
12738
- "description": "This attribute allows you to specify a frames border."
12738
+ "description": "This attribute allows you to specify a frame's border."
12739
12739
  },
12740
12740
  "marginheight": {
12741
12741
  "description": "This attribute defines the height of the margin between frames."
@@ -12744,7 +12744,7 @@
12744
12744
  "description": "This attribute defines the width of the margin between frames."
12745
12745
  },
12746
12746
  "name": {
12747
- "description": "This attribute is used for labeling frames. Without labeling, every link will open in the frame that its in – the closest parent frame. See the target attribute for more information."
12747
+ "description": "This attribute is used for labeling frames. Without labeling, every link will open in the frame that it's in – the closest parent frame. See the target attribute for more information."
12748
12748
  },
12749
12749
  "noresize": {
12750
12750
  "description": "This attribute prevents resizing of frames by users."
@@ -13147,7 +13147,7 @@
13147
13147
  },
13148
13148
  "attributes": {
13149
13149
  "manifest": {
13150
- "description": "Specifies the URI of a resource manifest indicating resources that should be cached locally. See Using the application cache for details.",
13150
+ "description": "Specifies the URI of a resource manifest indicating resources that should be cached locally.",
13151
13151
  "deprecated": true
13152
13152
  },
13153
13153
  "version": {
@@ -13429,7 +13429,7 @@
13429
13429
  "deprecated": true
13430
13430
  },
13431
13431
  "intrinsicsize": {
13432
- "description": "This attribute tells the browser to ignore the actual intrinsic size of the image and pretend its the size specified in the attribute. Specifically, the image would raster at these dimensions and naturalWidth/naturalHeight on images would return the values specified in this attribute. Explainer, examples",
13432
+ "description": "This attribute tells the browser to ignore the actual intrinsic size of the image and pretend it's the size specified in the attribute. Specifically, the image would raster at these dimensions and naturalWidth/naturalHeight on images would return the values specified in this attribute. Explainer, examples",
13433
13433
  "deprecated": true
13434
13434
  },
13435
13435
  "ismap": {
@@ -13444,7 +13444,7 @@
13444
13444
  "experimental": true
13445
13445
  },
13446
13446
  "longdesc": {
13447
- "description": "A link to a more detailed description of the image. Possible values are a URL or an element id. Note: This attribute is mentioned in the latest W3C version, HTML 5.2, but has been removed from the WHATWGs HTML Living Standard. It has an uncertain future; authors should use a WAI-ARIA alternative such as aria-describedby or aria-details.",
13447
+ "description": "A link to a more detailed description of the image. Possible values are a URL or an element id. Note: This attribute is mentioned in the latest W3C version, HTML 5.2, but has been removed from the WHATWG's HTML Living Standard. It has an uncertain future; authors should use a WAI-ARIA alternative such as aria-describedby or aria-details.",
13448
13448
  "deprecated": true
13449
13449
  },
13450
13450
  "name": {
@@ -13455,7 +13455,7 @@
13455
13455
  "description": "A string indicating which referrer to use when fetching the resource: no-referrer: The Referer header will not be sent. no-referrer-when-downgrade: The Referer header will not be sent to origins without TLS (HTTPS). origin: The sent referrer will be limited to the origin of the referring page: its scheme, host, and port. origin-when-cross-origin: The referrer sent to other origins will be limited to the scheme, the host, and the port. Navigations on the same origin will still include the path. same-origin: A referrer will be sent for same origin, but cross-origin requests will contain no referrer information. strict-origin: Only send the origin of the document as the referrer when the protocol security level stays the same (HTTPS→HTTPS), but don't send it to a less secure destination (HTTPS→HTTP). strict-origin-when-cross-origin (default): Send a full URL when performing a same-origin request, only send the origin when the protocol security level stays the same (HTTPS→HTTPS), and send no header to a less secure destination (HTTPS→HTTP). unsafe-url: The referrer will include the origin and the path (but not the fragment, password, or username). This value is unsafe, because it leaks origins and paths from TLS-protected resources to insecure origins."
13456
13456
  },
13457
13457
  "sizes": {
13458
- "description": "One or more strings separated by commas, indicating a set of source sizes. Each source size consists of: A media condition. This must be omitted for the last item in the list. A source size value. Media Conditions describe properties of the viewport, not of the image. For example, (max-height: 500px) 1000px proposes to use a source of 1000px width, if the viewport is not higher than 500px. Source size values specify the intended display size of the image. User agents use the current source size to select one of the sources supplied by the srcset attribute, when those sources are described using width (w) descriptors. The selected source size affects the intrinsic size of the image (the images display size if no CSS styling is applied). If the srcset attribute is absent, or contains no values with a width descriptor, then the sizes attribute has no effect."
13458
+ "description": "One or more strings separated by commas, indicating a set of source sizes. Each source size consists of: A media condition. This must be omitted for the last item in the list. A source size value. Media Conditions describe properties of the viewport, not of the image. For example, (max-height: 500px) 1000px proposes to use a source of 1000px width, if the viewport is not higher than 500px. Source size values specify the intended display size of the image. User agents use the current source size to select one of the sources supplied by the srcset attribute, when those sources are described using width (w) descriptors. The selected source size affects the intrinsic size of the image (the image's display size if no CSS styling is applied). If the srcset attribute is absent, or contains no values with a width descriptor, then the sizes attribute has no effect."
13459
13459
  },
13460
13460
  "src": {
13461
13461
  "ref": "https://html.spec.whatwg.org/multipage/embedded-content.html#attr-img-src",
@@ -14430,6 +14430,12 @@
14430
14430
  "self": ["[rel='preload' i]", "[rel='modulepreload' i]"]
14431
14431
  }
14432
14432
  },
14433
+ "blocking": {
14434
+ "ref": "https://html.spec.whatwg.org/multipage/urls-and-fetching.html#render-blocking",
14435
+ "type": {
14436
+ "enum": ["render"]
14437
+ }
14438
+ },
14433
14439
  "charset": {
14434
14440
  "description": "This attribute defines the character encoding of the linked resource. The value is a space- and/or comma-delimited list of character sets as defined in RFC 2045. The default value is iso-8859-1. Note: To produce the same effect as this obsolete attribute, use the Content-Type HTTP header on the linked resource.",
14435
14441
  "obsolete": true,
@@ -14497,7 +14503,7 @@
14497
14503
  "experimental": true
14498
14504
  },
14499
14505
  "referrerpolicy": {
14500
- "description": "A string indicating which referrer to use when fetching the resource: no-referrer means that the Referer header will not be sent. no-referrer-when-downgrade means that no Referer header will be sent when navigating to an origin without TLS (HTTPS). This is a user agents default behavior, if no policy is otherwise specified. origin means that the referrer will be the origin of the page, which is roughly the scheme, the host, and the port. origin-when-cross-origin means that navigating to other origins will be limited to the scheme, the host, and the port, while navigating on the same origin will include the referrer's path. unsafe-url means that the referrer will include the origin and the path (but not the fragment, password, or username). This case is unsafe because it can leak origins and paths from TLS-protected resources to insecure origins.",
14506
+ "description": "A string indicating which referrer to use when fetching the resource: no-referrer means that the Referer header will not be sent. no-referrer-when-downgrade means that no Referer header will be sent when navigating to an origin without TLS (HTTPS). This is a user agent's default behavior, if no policy is otherwise specified. origin means that the referrer will be the origin of the page, which is roughly the scheme, the host, and the port. origin-when-cross-origin means that navigating to other origins will be limited to the scheme, the host, and the port, while navigating on the same origin will include the referrer's path. unsafe-url means that the referrer will include the origin and the path (but not the fragment, password, or username). This case is unsafe because it can leak origins and paths from TLS-protected resources to insecure origins.",
14501
14507
  "experimental": true
14502
14508
  },
14503
14509
  "rel": {
@@ -16064,8 +16070,14 @@
16064
16070
  },
16065
16071
  "ineffective": ":not([src]):not([type='module' i])"
16066
16072
  },
16073
+ "blocking": {
16074
+ "ref": "https://html.spec.whatwg.org/multipage/urls-and-fetching.html#render-blocking",
16075
+ "type": {
16076
+ "enum": ["render"]
16077
+ }
16078
+ },
16067
16079
  "charset": {
16068
- "description": "If present, its value must be an ASCII case-insensitive match for \"utf-8\". Its unnecessary to specify the charset attribute, because documents must use UTF-8, and the script element inherits its character encoding from the document.",
16080
+ "description": "If present, its value must be an ASCII case-insensitive match for \"utf-8\". It's unnecessary to specify the charset attribute, because documents must use UTF-8, and the script element inherits its character encoding from the document.",
16069
16081
  "deprecated": true
16070
16082
  },
16071
16083
  "crossorigin": {
@@ -16087,7 +16099,7 @@
16087
16099
  }
16088
16100
  },
16089
16101
  "language": {
16090
- "description": "Like the type attribute, this attribute identifies the scripting language in use. Unlike the type attribute, however, this attributes possible values were never standardized. The type attribute should be used instead.",
16102
+ "description": "Like the type attribute, this attribute identifies the scripting language in use. Unlike the type attribute, however, this attribute's possible values were never standardized. The type attribute should be used instead.",
16091
16103
  "deprecated": true
16092
16104
  },
16093
16105
  "nomodule": {
@@ -16566,12 +16578,18 @@
16566
16578
  "#HTMLGlobalAttrs": true
16567
16579
  },
16568
16580
  "attributes": {
16581
+ "blocking": {
16582
+ "ref": "https://html.spec.whatwg.org/multipage/urls-and-fetching.html#render-blocking",
16583
+ "type": {
16584
+ "enum": ["render"]
16585
+ }
16586
+ },
16569
16587
  "media": {
16570
16588
  "ref": "https://html.spec.whatwg.org/multipage/semantics.html#attr-style-media",
16571
16589
  "type": "<media-query-list>"
16572
16590
  },
16573
16591
  "nonce": {
16574
- "description": "A cryptographic nonce (number used once) used to allow inline styles in a style-src Content-Security-Policy. The server must generate a unique nonce value each time it transmits a policy. It is critical to provide a nonce that cannot be guessed as bypassing a resources policy is otherwise trivial."
16592
+ "description": "A cryptographic nonce (number used once) used to allow inline styles in a style-src Content-Security-Policy. The server must generate a unique nonce value each time it transmits a policy. It is critical to provide a nonce that cannot be guessed as bypassing a resource's policy is otherwise trivial."
16575
16593
  },
16576
16594
  "scoped": {
16577
16595
  "description": "This attribute specifies that the styles only apply to the elements of its parent(s) and children. Note: This attribute may be re-introduced in the future per https://github.com/w3c/csswg-drafts/issues/3547. If you want to use the attribute now, you can use a polyfill.",
@@ -16767,7 +16785,7 @@
16767
16785
  "deprecated": true
16768
16786
  },
16769
16787
  "bgcolor": {
16770
- "description": "The background color of the table. It is a 6-digit hexadecimal RGB code, prefixed by a '#'. One of the predefined color kewords can also be used. To achieve a similar effect, use the CSS background-color property.",
16788
+ "description": "The background color of the table. It is a 6-digit hexadecimal RGB code, prefixed by a '#'. One of the predefined color keywords can also be used. To achieve a similar effect, use the CSS background-color property.",
16771
16789
  "deprecated": true
16772
16790
  },
16773
16791
  "border": {
@@ -16835,7 +16853,7 @@
16835
16853
  "deprecated": true
16836
16854
  },
16837
16855
  "bgcolor": {
16838
- "description": "The background color of the table. It is a 6-digit hexadecimal RGB code, prefixed by a '#'. One of the predefined color kewords can also be used. As this attribute is deprecated, use the CSS background-color property instead.",
16856
+ "description": "The background color of the table. It is a 6-digit hexadecimal RGB code, prefixed by a '#'. One of the predefined color keywords can also be used. As this attribute is deprecated, use the CSS background-color property instead.",
16839
16857
  "deprecated": true
16840
16858
  },
16841
16859
  "char": {
@@ -16912,7 +16930,7 @@
16912
16930
  "deprecated": true
16913
16931
  },
16914
16932
  "bgcolor": {
16915
- "description": "This attribute defines the background color of each cell in a column. It is a 6-digit hexadecimal RGB code, prefixed by a '#'. One of the predefined color kewords can also be used. To achieve a similar effect, use the CSS background-color property.",
16933
+ "description": "This attribute defines the background color of each cell in a column. It is a 6-digit hexadecimal RGB code, prefixed by a '#'. One of the predefined color keywords can also be used. To achieve a similar effect, use the CSS background-color property.",
16916
16934
  "deprecated": true
16917
16935
  },
16918
16936
  "char": {
@@ -17125,7 +17143,7 @@
17125
17143
  "deprecated": true
17126
17144
  },
17127
17145
  "bgcolor": {
17128
- "description": "The background color of the table. It is a 6-digit hexadecimal RGB code, prefixed by a '#'. One of the predefined color kewords can also be used. To achieve a similar effect, use the CSS background-color property.",
17146
+ "description": "The background color of the table. It is a 6-digit hexadecimal RGB code, prefixed by a '#'. One of the predefined color keywords can also be used. To achieve a similar effect, use the CSS background-color property.",
17129
17147
  "deprecated": true
17130
17148
  },
17131
17149
  "char": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@markuplint/html-spec",
3
- "version": "2.0.0",
3
+ "version": "2.1.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>",
@@ -28,5 +28,5 @@
28
28
  "dependencies": {
29
29
  "@markuplint/ml-spec": "2.0.0"
30
30
  },
31
- "gitHead": "de81fc514acdf472f87184e3499e9364258f9b66"
31
+ "gitHead": "37c0b6e00b612ce8d31549ce6b99c2f20ac242c7"
32
32
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "tag": "link",
3
- "ref": "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link",
3
+ "ref": "https://html.spec.whatwg.org/multipage/semantics.html#the-link-element",
4
4
  "global": {
5
5
  "#HTMLGlobalAttrs": true,
6
6
  "#GlobalEventAttrs": true,
@@ -113,6 +113,12 @@
113
113
  "self": ["[rel='preload' i]", "[rel='modulepreload' i]"]
114
114
  }
115
115
  },
116
+ "blocking": {
117
+ "ref": "https://html.spec.whatwg.org/multipage/urls-and-fetching.html#render-blocking",
118
+ "type": {
119
+ "enum": ["render"]
120
+ }
121
+ },
116
122
  "color": {
117
123
  "ref": "https://html.spec.whatwg.org/multipage/semantics.html#attr-link-color",
118
124
  "type": "<color>",
@@ -53,6 +53,12 @@
53
53
  "condition": {
54
54
  "self": "[src]"
55
55
  }
56
+ },
57
+ "blocking": {
58
+ "ref": "https://html.spec.whatwg.org/multipage/urls-and-fetching.html#render-blocking",
59
+ "type": {
60
+ "enum": ["render"]
61
+ }
56
62
  }
57
63
  }
58
64
  }
@@ -11,6 +11,12 @@
11
11
  "media": {
12
12
  "ref": "https://html.spec.whatwg.org/multipage/semantics.html#attr-style-media",
13
13
  "type": "<media-query-list>"
14
+ },
15
+ "blocking": {
16
+ "ref": "https://html.spec.whatwg.org/multipage/urls-and-fetching.html#render-blocking",
17
+ "type": {
18
+ "enum": ["render"]
19
+ }
14
20
  }
15
21
  }
16
22
  }