@markuplint/html-spec 4.10.1 → 4.11.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.
Files changed (3) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/index.json +37 -40
  3. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [4.11.0](https://github.com/markuplint/markuplint/compare/@markuplint/html-spec@4.10.2...@markuplint/html-spec@4.11.0) (2024-11-17)
7
+
8
+ ### Features
9
+
10
+ - **html-spec:** add `command` and `commandfor` attributes with the `command` event ([19142ab](https://github.com/markuplint/markuplint/commit/19142abe2dbefdf9b333ea43001f7492793cf93e))
11
+ - **html-spec:** remove `nonStandard` flag from the deprecated `type` attr of the `li` element ([a28cd02](https://github.com/markuplint/markuplint/commit/a28cd02fc870f155eaad6240a310aeb410b55e30))
12
+
13
+ ## [4.10.2](https://github.com/markuplint/markuplint/compare/@markuplint/html-spec@4.10.1...@markuplint/html-spec@4.10.2) (2024-10-31)
14
+
15
+ **Note:** Version bump only for package @markuplint/html-spec
16
+
6
17
  ## [4.10.1](https://github.com/markuplint/markuplint/compare/@markuplint/html-spec@4.10.0...@markuplint/html-spec@4.10.1) (2024-10-28)
7
18
 
8
19
  **Note:** Version bump only for package @markuplint/html-spec
package/index.json CHANGED
@@ -459,6 +459,9 @@
459
459
  "onclose": {
460
460
  "type": "FunctionBody"
461
461
  },
462
+ "oncommand": {
463
+ "type": "FunctionBody"
464
+ },
462
465
  "oncontextlost": {
463
466
  "type": "FunctionBody"
464
467
  },
@@ -35263,7 +35266,7 @@
35263
35266
  }
35264
35267
  },
35265
35268
  "download": {
35266
- "description": "This attribute, if present, indicates that the author intends the hyperlink to be used for downloading a resource. See <a> for a full description of the download attribute."
35269
+ "description": "This attribute, if present, indicates that the linked resource is intended to be downloaded rather than displayed in the browser. See <a> for a full description of the download attribute."
35267
35270
  },
35268
35271
  "href": {
35269
35272
  "description": "The hyperlink target for the area. Its value is a valid URL. This attribute may be omitted; if so, the <area> element does not represent a hyperlink."
@@ -35700,27 +35703,27 @@
35700
35703
  },
35701
35704
  "attributes": {
35702
35705
  "alink": {
35703
- "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.",
35706
+ "description": "Color of text for hyperlinks when selected. Use the CSS color property in conjunction with the :active and :focus pseudo-classes instead.",
35704
35707
  "deprecated": true
35705
35708
  },
35706
35709
  "background": {
35707
- "description": "URI of an image to use as a background. Do not use this attribute! Use the CSS background property on the element instead.",
35710
+ "description": "URI of an image to use as a background. Use the CSS background-image property instead.",
35708
35711
  "deprecated": true
35709
35712
  },
35710
35713
  "bgcolor": {
35711
- "description": "Background color for the document. Do not use this attribute! Use the CSS background-color property on the element instead.",
35714
+ "description": "Background color for the document. Use the CSS background-color property instead.",
35712
35715
  "deprecated": true
35713
35716
  },
35714
35717
  "bottommargin": {
35715
- "description": "The margin of the bottom of the body. Do not use this attribute! Use the CSS margin-bottom property on the element instead.",
35718
+ "description": "The margin of the bottom of the body. Use the CSS margin-bottom property (or the logical margin-block-end property) instead.",
35716
35719
  "deprecated": true
35717
35720
  },
35718
35721
  "leftmargin": {
35719
- "description": "The margin of the left of the body. Do not use this attribute! Use the CSS margin-left property on the element instead.",
35722
+ "description": "The margin of the left of the body. Use the CSS margin-left property (or the logical margin-inline-start property) instead.",
35720
35723
  "deprecated": true
35721
35724
  },
35722
35725
  "link": {
35723
- "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.",
35726
+ "description": "Color of text for unvisited hypertext links. Use the CSS color property in conjunction with the :link pseudo-class instead.",
35724
35727
  "deprecated": true
35725
35728
  },
35726
35729
  "onafterprint": {
@@ -35732,24 +35735,12 @@
35732
35735
  "onbeforeunload": {
35733
35736
  "type": "FunctionBody"
35734
35737
  },
35735
- "onblur": {
35736
- "description": "Function to call when the document loses focus."
35737
- },
35738
- "onerror": {
35739
- "description": "Function to call when the document fails to load properly."
35740
- },
35741
- "onfocus": {
35742
- "description": "Function to call when the document receives focus."
35743
- },
35744
35738
  "onhashchange": {
35745
35739
  "type": "FunctionBody"
35746
35740
  },
35747
35741
  "onlanguagechange": {
35748
35742
  "type": "FunctionBody"
35749
35743
  },
35750
- "onload": {
35751
- "description": "Function to call when the document has finished loading."
35752
- },
35753
35744
  "onmessage": {
35754
35745
  "type": "FunctionBody"
35755
35746
  },
@@ -35780,9 +35771,6 @@
35780
35771
  "onrejectionhandled": {
35781
35772
  "type": "FunctionBody"
35782
35773
  },
35783
- "onresize": {
35784
- "description": "Function to call when the document has been resized."
35785
- },
35786
35774
  "onstorage": {
35787
35775
  "type": "FunctionBody"
35788
35776
  },
@@ -35793,19 +35781,19 @@
35793
35781
  "type": "FunctionBody"
35794
35782
  },
35795
35783
  "rightmargin": {
35796
- "description": "The margin of the right of the body. Do not use this attribute! Use the CSS margin-right property on the element instead.",
35784
+ "description": "The margin of the right of the body. Use the CSS margin-right property or the logical margin-inline-end property) instead.",
35797
35785
  "deprecated": true
35798
35786
  },
35799
35787
  "text": {
35800
- "description": "Foreground color of text. Do not use this attribute! Use CSS color property on the element instead.",
35788
+ "description": "Foreground color of text. Use the CSS color property instead.",
35801
35789
  "deprecated": true
35802
35790
  },
35803
35791
  "topmargin": {
35804
- "description": "The margin of the top of the body. Do not use this attribute! Use the CSS margin-top property on the element instead.",
35792
+ "description": "The margin of the top of the body. Use the CSS margin-top property (or the logical margin-block-start property) instead.",
35805
35793
  "deprecated": true
35806
35794
  },
35807
35795
  "vlink": {
35808
- "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.",
35796
+ "description": "Color of text for visited hypertext links. Use the CSS color property in conjunction with the :visited pseudo-class instead.",
35809
35797
  "deprecated": true
35810
35798
  }
35811
35799
  }
@@ -35904,6 +35892,21 @@
35904
35892
  "autofocus": {
35905
35893
  "description": "This Boolean attribute specifies that the button should have input focus when the page loads. Only one element in a document can have this attribute."
35906
35894
  },
35895
+ "command": {
35896
+ "type": [
35897
+ {
35898
+ "enum": ["toggle-popover", "show-popover", "hide-popover", "close", "show-modal"],
35899
+ "invalidValueDefault": "unknown",
35900
+ "missingValueDefault": "unknown"
35901
+ },
35902
+ "ValidCustomCommand"
35903
+ ],
35904
+ "experimental": true
35905
+ },
35906
+ "commandfor": {
35907
+ "type": "DOMID",
35908
+ "experimental": true
35909
+ },
35907
35910
  "disabled": {
35908
35911
  "description": "This Boolean attribute prevents the user from interacting with the button: it cannot be pressed or focused."
35909
35912
  },
@@ -37649,7 +37652,7 @@
37649
37652
  "description": "Marks the image for observation by the PerformanceElementTiming API. The value given becomes an identifier for the observed image element. See also the elementtiming attribute page."
37650
37653
  },
37651
37654
  "fetchpriority": {
37652
- "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."
37655
+ "description": "Provides a hint of the relative priority to use when fetching the image. Allowed values: high Fetch the image at a high priority relative to other images. low Fetch the image at a low priority relative to other images. auto Don't set a preference for the fetch priority. This is the default. It is used if no value or an invalid value is set. See HTMLImageElement.fetchPriority for more information."
37653
37656
  },
37654
37657
  "height": {
37655
37658
  "description": "The intrinsic height of the image, in pixels. Must be an integer without a unit. Note: Including height and width enables the aspect ratio of the image to be calculated by the browser prior to the image being loaded. This aspect ratio is used to reserve the space needed to display the image, reducing or even preventing a layout shift when the image is downloaded and painted to the screen. Reducing layout shift is a major component of good user experience and web performance."
@@ -38238,10 +38241,6 @@
38238
38241
  "[type='color' i]"
38239
38242
  ]
38240
38243
  },
38241
- "autocorrect": {
38242
- "description": "(Safari only). A string which indicates whether to activate automatic correction while the user is editing this field. Permitted values are: on Enable automatic correction of typos, as well as processing of text substitutions if any are configured. off Disable automatic correction and text substitutions.",
38243
- "nonStandard": true
38244
- },
38245
38244
  "autofocus": {
38246
38245
  "description": "A Boolean attribute which, if present, indicates that the input should automatically have focus when the page has finished loading (or when the <dialog> containing the element has been displayed). Note: An element with the autofocus attribute may gain focus before the DOMContentLoaded event is fired. No more than one element in the document may have the autofocus attribute. If put on more than one element, the first one with the attribute receives focus. The autofocus attribute cannot be used on inputs of type hidden, since hidden inputs cannot be focused. Warning: Automatically focusing a form control can confuse visually-impaired people using screen-reading technology and people with cognitive impairments. When autofocus is assigned, screen-readers \"teleport\" their user to the form control without warning them beforehand. Use careful consideration for accessibility when applying the autofocus attribute. Automatically focusing on a control can cause the page to scroll on load. The focus can also cause dynamic keyboards to display on some touch devices. While a screen reader will announce the label of the form control receiving focus, the screen reader will not announce anything before the label, and the sighted user on a small device will equally miss the context created by the preceding content."
38247
38246
  },
@@ -38732,8 +38731,7 @@
38732
38731
  "attributes": {
38733
38732
  "type": {
38734
38733
  "description": "This character attribute indicates the numbering type: a: lowercase letters A: uppercase letters i: lowercase Roman numerals I: uppercase Roman numerals 1: numbers This type overrides the one used by its parent <ol> element, if any. Note: This attribute has been deprecated; use the CSS list-style-type property instead.",
38735
- "deprecated": true,
38736
- "nonStandard": true
38734
+ "deprecated": true
38737
38735
  },
38738
38736
  "value": {
38739
38737
  "type": "Int",
@@ -38825,7 +38823,7 @@
38825
38823
  "type": "Boolean"
38826
38824
  },
38827
38825
  "fetchpriority": {
38828
- "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."
38826
+ "description": "Provides a hint of the relative priority to use when fetching a resource of a particular type. Allowed values: high Fetch the resource at a high priority relative to other resources of the same type. low Fetch the resource at a low priority relative to other resources of the same type. auto Don't set a preference for the fetch priority. This is the default. It is used if no value or an invalid value is set. See HTMLLinkElement.fetchPriority for more information."
38829
38827
  },
38830
38828
  "href": {
38831
38829
  "description": "This attribute specifies the URL of the linked resource. A URL can be absolute or relative."
@@ -40253,7 +40251,7 @@
40253
40251
  "ineffective": ["[type='module' i]", ":not([src])", "[async]"]
40254
40252
  },
40255
40253
  "fetchpriority": {
40256
- "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."
40254
+ "description": "Provides a hint of the relative priority to use when fetching an external script. Allowed values: high Fetch the external script at a high priority relative to other external scripts. low Fetch the external script at a low priority relative to other external scripts. auto Don't set a preference for the fetch priority. This is the default. It is used if no value or an invalid value is set. See HTMLScriptElement.fetchPriority for more information."
40257
40255
  },
40258
40256
  "integrity": {
40259
40257
  "condition": "[src]"
@@ -41108,14 +41106,13 @@
41108
41106
  },
41109
41107
  "attributes": {
41110
41108
  "autocapitalize": {
41111
- "description": "Controls whether inputted text is automatically capitalized and, if so, in what manner. See the autocapitalize global attribute page for more information."
41109
+ "description": "Controls whether inputted text is automatically capitalized and, if so, in what manner."
41112
41110
  },
41113
41111
  "autocomplete": {
41114
- "description": "This attribute indicates whether the value of the control can be automatically completed by the browser. Possible values are: off: The user must explicitly enter a value into this field for every use, or the document provides its own auto-completion method; the browser does not automatically complete the entry. on: The browser can automatically complete the value based on values that the user has entered during previous uses. <token-list>: An ordered set of space-separated autofill detail tokens, optionally preceded by a sectioning token, a billing or shipping grouping token, and/or a token identifying the type of recipient. <textarea> elements that don't specify the autocomplete attribute inherit the autocomplete on or off status set on the <textarea>'s form owner. The form owner is either the <form> element that this <textarea> element is a descendant of or the form element whose id is specified by the form attribute of the input element. For more information, see the autocomplete attribute in <form>."
41112
+ "description": "Controls whether entered text can be automatically completed by the browser. Possible values are: off: The user must explicitly enter a value into this field for every use, or the document provides its own auto-completion method; the browser does not automatically complete the entry. on: The browser can automatically complete the value based on values that the user has entered during previous uses. <token-list>: An ordered set of space-separated autofill detail tokens, optionally preceded by a sectioning token, a billing or shipping grouping token, and/or a token identifying the type of recipient. <textarea> elements that don't specify the autocomplete attribute inherit the autocomplete on or off status set on the <textarea>'s form owner. The form owner is either the <form> element that this <textarea> element is a descendant of or the form element whose id is specified by the form attribute of the input element. For more information, see the autocomplete attribute in <form>."
41115
41113
  },
41116
41114
  "autocorrect": {
41117
- "description": "A string which indicates whether to activate automatic spelling correction and processing of text substitutions (if any are configured) while the user is editing this textarea. Permitted values are: on Enable automatic spelling correction and text substitutions. off Disable automatic spelling correction and text substitutions.",
41118
- "nonStandard": true
41115
+ "description": "Controls whether automatic spelling correction and processing of text is enabled while the user is editing this textarea. Permitted values are: on Enable automatic spelling correction and text substitutions. off Disable automatic spelling correction and text substitutions."
41119
41116
  },
41120
41117
  "autofocus": {
41121
41118
  "description": "This Boolean attribute lets you specify that a form control should have input focus when the page loads. Only one form-associated element in a document can have this attribute specified."
@@ -47192,7 +47189,7 @@
47192
47189
  "name": "svg:set",
47193
47190
  "namespace": "http://www.w3.org/2000/svg",
47194
47191
  "cite": "https://developer.mozilla.org/en-US/docs/Web/SVG/Element/set",
47195
- "description": "The SVG <set> element provides a simple means of just setting the value of an attribute for a specified duration.",
47192
+ "description": "The SVG <set> element provides a method of setting the value of an attribute for a specified duration.",
47196
47193
  "categories": [],
47197
47194
  "contentModel": {
47198
47195
  "contents": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@markuplint/html-spec",
3
- "version": "4.10.1",
3
+ "version": "4.11.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>",
@@ -27,11 +27,11 @@
27
27
  "gen:prettier": "prettier --write index.json"
28
28
  },
29
29
  "devDependencies": {
30
- "@markuplint/spec-generator": "4.6.11",
31
- "@markuplint/test-tools": "4.5.11"
30
+ "@markuplint/spec-generator": "4.6.13",
31
+ "@markuplint/test-tools": "4.5.13"
32
32
  },
33
33
  "dependencies": {
34
- "@markuplint/ml-spec": "4.8.1"
34
+ "@markuplint/ml-spec": "4.9.0"
35
35
  },
36
- "gitHead": "60a8a7149bd4441e89972ca21b90033afb05b89e"
36
+ "gitHead": "b2154ecf1e67559a3791991752f45c9c0283801a"
37
37
  }