@markuplint/html-spec 3.3.1 → 3.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.
Files changed (2) hide show
  1. package/index.json +69 -49
  2. package/package.json +5 -4
package/index.json CHANGED
@@ -110,6 +110,7 @@
110
110
  "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/s",
111
111
  "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/samp",
112
112
  "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script",
113
+ "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/search",
113
114
  "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/section",
114
115
  "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select",
115
116
  "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/slot",
@@ -148,7 +149,6 @@
148
149
  "https://developer.mozilla.org/en-US/docs/Web/SVG/Element/altGlyphDef",
149
150
  "https://developer.mozilla.org/en-US/docs/Web/SVG/Element/altGlyphItem",
150
151
  "https://developer.mozilla.org/en-US/docs/Web/SVG/Element/animate",
151
- "https://developer.mozilla.org/en-US/docs/Web/SVG/Element/animateColor",
152
152
  "https://developer.mozilla.org/en-US/docs/Web/SVG/Element/animateMotion",
153
153
  "https://developer.mozilla.org/en-US/docs/Web/SVG/Element/animateTransform",
154
154
  "https://developer.mozilla.org/en-US/docs/Web/SVG/Element/circle",
@@ -254,7 +254,7 @@
254
254
  },
255
255
  "contenteditable": {
256
256
  "type": {
257
- "enum": ["", "true", "false"],
257
+ "enum": ["", "true", "false", "plaintext-only"],
258
258
  "disallowToSurroundBySpaces": true,
259
259
  "invalidValueDefault": "inherit",
260
260
  "missingValueDefault": "inherit",
@@ -745,8 +745,7 @@
745
745
  "enum": ["high", "low", "auto"],
746
746
  "invalidValueDefault": "auto",
747
747
  "missingValueDefault": "auto"
748
- },
749
- "experimental": true
748
+ }
750
749
  }
751
750
  },
752
751
  "#HTMLEmbededAndMediaContentAttrs": {
@@ -22178,6 +22177,7 @@
22178
22177
  "s",
22179
22178
  "samp",
22180
22179
  "script",
22180
+ "search",
22181
22181
  "section",
22182
22182
  "select",
22183
22183
  "slot",
@@ -22344,6 +22344,7 @@
22344
22344
  "ruby",
22345
22345
  "s",
22346
22346
  "samp",
22347
+ "search",
22347
22348
  "section",
22348
22349
  "select",
22349
22350
  "small",
@@ -23223,7 +23224,13 @@
23223
23224
  "permittedRoles": false,
23224
23225
  "namingProhibited": true,
23225
23226
  "properties": {
23226
- "global": true
23227
+ "global": true,
23228
+ "without": [
23229
+ {
23230
+ "name": "aria-hidden",
23231
+ "type": "must-not"
23232
+ }
23233
+ ]
23227
23234
  },
23228
23235
  "1.1": {
23229
23236
  "implicitRole": false,
@@ -23448,14 +23455,14 @@
23448
23455
  },
23449
23456
  "attributes": {
23450
23457
  "autocomplete": {
23451
- "description": "This attribute on a <button> is nonstandard and Firefox-specific. Unlike other browsers, Firefox persists the dynamic disabled state of a <button> across page loads. Setting autocomplete=\"off\" on the button disables this feature; see bug 654072.",
23458
+ "description": "This attribute on a <button> is nonstandard and Firefox-specific. Unlike other browsers, Firefox persists the dynamic disabled state of a <button> across page loads. Setting autocomplete=\"off\" on the button disables this feature; see Firefox bug 654072.",
23452
23459
  "nonStandard": true
23453
23460
  },
23454
23461
  "autofocus": {
23455
23462
  "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."
23456
23463
  },
23457
23464
  "disabled": {
23458
- "description": "This Boolean attribute prevents the user from interacting with the button: it cannot be pressed or focused. Firefox, unlike other browsers, persists the dynamic disabled state of a <button> across page loads. Use the autocomplete attribute to control this feature."
23465
+ "description": "This Boolean attribute prevents the user from interacting with the button: it cannot be pressed or focused. Firefox, unlike other browsers, persists the dynamic disabled state of a <button> across page loads. To control this feature, use the [autocomplete]] (#autocomplete) attribute."
23459
23466
  },
23460
23467
  "form": {
23461
23468
  "description": "The <form> element to associate the button 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 <button> is associated with its ancestor <form> element, if any.) This attribute lets you associate <button> elements to <form>s anywhere in the document, not just inside a <form>. It can also override an ancestor <form> element."
@@ -23478,14 +23485,16 @@
23478
23485
  "name": {
23479
23486
  "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."
23480
23487
  },
23481
- "popoverhidetarget": {
23488
+ "popovertarget": {
23482
23489
  "type": "DOMID"
23483
23490
  },
23484
- "popovershowtarget": {
23485
- "type": "DOMID"
23486
- },
23487
- "popovertoggletarget": {
23488
- "type": "DOMID"
23491
+ "popovertargetaction": {
23492
+ "type": {
23493
+ "enum": ["toggle", "show", "hide"],
23494
+ "disallowToSurroundBySpaces": true,
23495
+ "invalidValueDefault": "toggle",
23496
+ "missingValueDefault": "toggle"
23497
+ }
23489
23498
  },
23490
23499
  "type": {
23491
23500
  "type": {
@@ -23671,7 +23680,7 @@
23671
23680
  "deprecated": true
23672
23681
  },
23673
23682
  "char": {
23674
- "description": "This attribute is used to set the character to align the cells in a column on. Typical values for this include a period (.) when attempting to align numbers or monetary values. If align is not set to char, this attribute is ignored.",
23683
+ "description": "This attribute sets the character to align the cells in a column on. Typical values for this include a period (.) when attempting to align numbers or monetary values. If align is not set to char, this attribute is ignored.",
23675
23684
  "deprecated": true
23676
23685
  },
23677
23686
  "charoff": {
@@ -25011,10 +25020,6 @@
25011
25020
  "description": "A Content Security Policy enforced for the embedded resource. See HTMLIFrameElement.csp for details.",
25012
25021
  "experimental": true
25013
25022
  },
25014
- "fetchpriority": {
25015
- "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.",
25016
- "experimental": true
25017
- },
25018
25023
  "frameborder": {
25019
25024
  "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.",
25020
25025
  "deprecated": true
@@ -25754,6 +25759,10 @@
25754
25759
  "type": "Any",
25755
25760
  "condition": "[type='image' i]"
25756
25761
  },
25762
+ "autocapitalize": {
25763
+ "description": "(Safari only). A string which indicates how auto-capitalization should be applied while the user is editing this field. Permitted values are: none Do not automatically capitalize any text sentences Automatically capitalize the first character of each sentence. words Automatically capitalize the first character of each word. characters Automatically capitalize every character.",
25764
+ "nonStandard": true
25765
+ },
25757
25766
  "autocomplete": {
25758
25767
  "condition": [
25759
25768
  ":not([type])",
@@ -25926,16 +25935,17 @@
25926
25935
  "[type='number' i]"
25927
25936
  ]
25928
25937
  },
25929
- "popoverhidetarget": {
25930
- "type": "DOMID",
25931
- "condition": ["[type='button' i]", "[type='image' i]", "[type='reset' i]", "[type='submit' i]"]
25932
- },
25933
- "popovershowtarget": {
25938
+ "popovertarget": {
25934
25939
  "type": "DOMID",
25935
25940
  "condition": ["[type='button' i]", "[type='image' i]", "[type='reset' i]", "[type='submit' i]"]
25936
25941
  },
25937
- "popovertoggletarget": {
25938
- "type": "DOMID",
25942
+ "popovertargetaction": {
25943
+ "type": {
25944
+ "enum": ["toggle", "show", "hide"],
25945
+ "disallowToSurroundBySpaces": true,
25946
+ "invalidValueDefault": "toggle",
25947
+ "missingValueDefault": "toggle"
25948
+ },
25939
25949
  "condition": ["[type='button' i]", "[type='image' i]", "[type='reset' i]", "[type='submit' i]"]
25940
25950
  },
25941
25951
  "readonly": {
@@ -27832,6 +27842,34 @@
27832
27842
  }
27833
27843
  }
27834
27844
  },
27845
+ {
27846
+ "name": "search",
27847
+ "cite": "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/search",
27848
+ "description": "",
27849
+ "categories": [],
27850
+ "contentModel": {
27851
+ "contents": [
27852
+ {
27853
+ "oneOrMore": ":model(flow)"
27854
+ }
27855
+ ]
27856
+ },
27857
+ "aria": {
27858
+ "implicitRole": "search",
27859
+ "permittedRoles": ["form", "group", "none", "presentation", "region"],
27860
+ "properties": {
27861
+ "global": true,
27862
+ "role": "search"
27863
+ }
27864
+ },
27865
+ "omission": false,
27866
+ "globalAttrs": {
27867
+ "#ARIAAttrs": true,
27868
+ "#GlobalEventAttrs": true,
27869
+ "#HTMLGlobalAttrs": true
27870
+ },
27871
+ "attributes": {}
27872
+ },
27835
27873
  {
27836
27874
  "name": "section",
27837
27875
  "cite": "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/section",
@@ -28513,7 +28551,7 @@
28513
28551
  "deprecated": true
28514
28552
  },
28515
28553
  "align": {
28516
- "description": "This enumerated attribute specifies how the cell content's horizontal alignment will be handled. Possible values are: left: The content is aligned to the left of the cell. center: The content is centered in the cell. right: The content is aligned to the right of the cell. justify (with text only): The content is stretched out inside the cell so that it covers its entire width. char (with text only): The content is aligned to a character inside the <th> element with minimal offset. This character is defined by the char and charoff attributes Unimplemented (see bug 2212). The default value when this attribute is not specified is left. Note: To achieve the same effect as the left, center, right or justify values, apply the CSS text-align property to the element. To achieve the same effect as the char value, give the text-align property the same value you would use for the char. Unimplemented in CSS.",
28554
+ "description": "This enumerated attribute specifies how the cell content's horizontal alignment will be handled. Possible values are: left: The content is aligned to the left of the cell. center: The content is centered in the cell. right: The content is aligned to the right of the cell. justify (with text only): The content is stretched out inside the cell so that it covers its entire width. char (with text only): The content is aligned to a character inside the <th> element with minimal offset. This character is defined by the char and charoff attributes. The default value when this attribute is not specified is left. Note: To achieve the same effect as the left, center, right or justify values, apply the CSS text-align property to the element. To achieve the same effect as the char value, give the text-align property the same value you would use for the char.",
28517
28555
  "deprecated": true
28518
28556
  },
28519
28557
  "axis": {
@@ -28702,7 +28740,7 @@
28702
28740
  },
28703
28741
  "attributes": {
28704
28742
  "align": {
28705
- "description": "This enumerated attribute specifies how horizontal alignment of each cell content will be handled. Possible values are: left, aligning the content to the left of the cell center, centering the content in the cell right, aligning the content to the right of the cell justify, inserting spaces into the textual content so that the content is justified in the cell char, aligning the textual content on a special character with a minimal offset, defined by the char and charoff attributes. If this attribute is not set, the left value is assumed. Note: To achieve the same effect as the left, center, right or justify values, use the CSS text-align property on it. To achieve the same effect as the char value, in CSS, you can use the value of the char as the value of the text-align property Unimplemented.",
28743
+ "description": "This enumerated attribute specifies how horizontal alignment of each cell content will be handled. Possible values are: left, aligning the content to the left of the cell center, centering the content in the cell right, aligning the content to the right of the cell justify, inserting spaces into the textual content so that the content is justified in the cell char, aligning the textual content on a special character with a minimal offset, defined by the char and charoff attributes. If this attribute is not set, the left value is assumed. Note: To achieve the same effect as the left, center, right or justify values, use the CSS text-align property on it. To achieve the same effect as the char value, in CSS, you can use the value of the char as the value of the text-align property.",
28706
28744
  "deprecated": true
28707
28745
  },
28708
28746
  "bgcolor": {
@@ -28726,7 +28764,7 @@
28726
28764
  {
28727
28765
  "name": "th",
28728
28766
  "cite": "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th",
28729
- "description": "The <th> HTML element defines a cell as header of a group of table cells. The exact nature of this group is defined by the scope and headers attributes.",
28767
+ "description": "The <th> HTML element defines a cell as the header of a group of table cells. The exact nature of this group is defined by the scope and headers attributes.",
28730
28768
  "categories": [],
28731
28769
  "contentModel": {
28732
28770
  "contents": [
@@ -28962,7 +29000,7 @@
28962
29000
  "deprecated": true
28963
29001
  },
28964
29002
  "char": {
28965
- "description": "A string which sets the character to align the cells in each of the row's columns on (each row's centering that uses the same character gets aligned with others using the same character. Typical values for this include a period (\".\") or comma (\",\") when attempting to align numbers or monetary values. If align is not set to char, this attribute is ignored. Note: This attribute is not only obsolete, but was rarely implemented anyway. To achieve the same effect as the char attribute, set the CSS text-align property to the same string you would specify for the char property, such as text-align: \".\".",
29003
+ "description": "A string that sets the character to align the cells in each row's columns (each row's centering that uses the same character gets aligned with others using the same character. Typical values for this include a period (\".\") or comma (\",\") when attempting to align numbers or monetary values. If align is not set to char, this attribute is ignored. Note: This attribute is obsolete and rarely implemented anyway. To achieve the same effect as the char attribute, set the CSS text-align property to the same string you would specify for the char property, such as text-align: \".\".",
28966
29004
  "deprecated": true
28967
29005
  },
28968
29006
  "charoff": {
@@ -29661,24 +29699,6 @@
29661
29699
  },
29662
29700
  "attributes": {}
29663
29701
  },
29664
- {
29665
- "name": "svg:animateColor",
29666
- "namespace": "http://www.w3.org/2000/svg",
29667
- "cite": "https://html.spec.whatwg.org/multipage/obsolete.html#non-conforming-features",
29668
- "description": "The SVG <animate> element provides a way to animate an attribute of an element over time.",
29669
- "categories": [],
29670
- "contentModel": {
29671
- "contents": true
29672
- },
29673
- "aria": {
29674
- "permittedRoles": true,
29675
- "implicitRole": false
29676
- },
29677
- "omission": false,
29678
- "obsolete": true,
29679
- "globalAttrs": {},
29680
- "attributes": {}
29681
- },
29682
29702
  {
29683
29703
  "name": "svg:animateMotion",
29684
29704
  "namespace": "http://www.w3.org/2000/svg",
@@ -33562,7 +33582,7 @@
33562
33582
  "name": "svg:marker",
33563
33583
  "namespace": "http://www.w3.org/2000/svg",
33564
33584
  "cite": "https://developer.mozilla.org/en-US/docs/Web/SVG/Element/marker",
33565
- "description": "The <marker> element defines the graphic that is to be used for drawing arrowheads or polymarkers on a given <path>, <line>, <polyline> or <polygon> element.",
33585
+ "description": "The <marker> element defines a graphic used for drawing arrowheads or polymarkers on a given <path>, <line>, <polyline> or <polygon> element.",
33566
33586
  "categories": [],
33567
33587
  "contentModel": {
33568
33588
  "contents": [
@@ -35848,7 +35868,7 @@
35848
35868
  "name": "svg:use",
35849
35869
  "namespace": "http://www.w3.org/2000/svg",
35850
35870
  "cite": "https://developer.mozilla.org/en-US/docs/Web/SVG/Element/use",
35851
- "description": "The <use> element takes nodes from within the SVG document, and duplicates them somewhere else.",
35871
+ "description": "The <use> element takes nodes from within the SVG document, and duplicates them somewhere else. The effect is the same as if the nodes were deeply cloned into a non-exposed DOM, then pasted where the use element is, much like cloned template elements.",
35852
35872
  "categories": [],
35853
35873
  "contentModel": {
35854
35874
  "contents": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@markuplint/html-spec",
3
- "version": "3.3.1",
3
+ "version": "3.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>",
@@ -24,10 +24,11 @@
24
24
  "fast-xml-parser": "^4.0.12",
25
25
  "glob": "^9.2.1",
26
26
  "node-fetch": "2",
27
- "strip-json-comments": "3"
27
+ "strip-json-comments": "3",
28
+ "type-fest": "^3.7.0"
28
29
  },
29
30
  "dependencies": {
30
- "@markuplint/ml-spec": "3.3.0"
31
+ "@markuplint/ml-spec": "3.5.0"
31
32
  },
32
- "gitHead": "f19e7de726cf01d53342bc5513c30da75d28da63"
33
+ "gitHead": "0c47b2c2722f6823a17f36edbab98486275f8ab4"
33
34
  }