html-validate 8.15.0 → 8.16.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.
@@ -267,6 +267,10 @@
267
267
  "type": "object",
268
268
  "additionalProperties": false,
269
269
  "properties": {
270
+ "disablable": {
271
+ "type": "boolean",
272
+ "title": "Disablable elements can be disabled using the disabled attribute."
273
+ },
270
274
  "listed": {
271
275
  "type": "boolean",
272
276
  "title": "Listed elements have a name attribute and is listed in the form and fieldset elements property."
@@ -738,6 +738,8 @@ export declare class EventHandler {
738
738
  * @public
739
739
  */
740
740
  export declare interface FormAssociated {
741
+ /** This element can be disabled using the `disabled` attribute */
742
+ disablable: boolean;
741
743
  /** Listed elements have a name attribute and is listed in the form and fieldset elements property. */
742
744
  listed: boolean;
743
745
  }
@@ -853,6 +855,23 @@ export declare class HtmlElement extends DOMNode {
853
855
  * (dynamic attributes) set this to the original attribute name.
854
856
  */
855
857
  setAttribute(key: string, value: string | DynamicValue | null, keyLocation: Location_2, valueLocation: Location_2 | null, originalAttribute?: string): void;
858
+ /**
859
+ * Get parsed tabindex for this element.
860
+ *
861
+ * - If `tabindex` attribute is not present `null` is returned.
862
+ * - If attribute value is omitted or the empty string `null` is returned.
863
+ * - If attribute value cannot be parsed `null` is returned.
864
+ * - If attribute value is dynamic `0` is returned.
865
+ * - Otherwise the parsed value is returned.
866
+ *
867
+ * This property does *NOT* take into account if the element have a default
868
+ * `tabindex` (such as `<input>` have). Instead use the `focusable` metadata
869
+ * property to determine this.
870
+ *
871
+ * @public
872
+ * @since 8.16.0
873
+ */
874
+ get tabIndex(): number | null;
856
875
  /**
857
876
  * Get a list of all attributes on this node.
858
877
  */
@@ -930,6 +930,8 @@ export declare interface FileSystemConfigLoaderOptions {
930
930
  * @public
931
931
  */
932
932
  export declare interface FormAssociated {
933
+ /** This element can be disabled using the `disabled` attribute */
934
+ disablable: boolean;
933
935
  /** Listed elements have a name attribute and is listed in the form and fieldset elements property. */
934
936
  listed: boolean;
935
937
  }
@@ -1071,6 +1073,23 @@ export declare class HtmlElement extends DOMNode {
1071
1073
  * (dynamic attributes) set this to the original attribute name.
1072
1074
  */
1073
1075
  setAttribute(key: string, value: string | DynamicValue | null, keyLocation: Location_2, valueLocation: Location_2 | null, originalAttribute?: string): void;
1076
+ /**
1077
+ * Get parsed tabindex for this element.
1078
+ *
1079
+ * - If `tabindex` attribute is not present `null` is returned.
1080
+ * - If attribute value is omitted or the empty string `null` is returned.
1081
+ * - If attribute value cannot be parsed `null` is returned.
1082
+ * - If attribute value is dynamic `0` is returned.
1083
+ * - Otherwise the parsed value is returned.
1084
+ *
1085
+ * This property does *NOT* take into account if the element have a default
1086
+ * `tabindex` (such as `<input>` have). Instead use the `focusable` metadata
1087
+ * property to determine this.
1088
+ *
1089
+ * @public
1090
+ * @since 8.16.0
1091
+ */
1092
+ get tabIndex(): number | null;
1074
1093
  /**
1075
1094
  * Get a list of all attributes on this node.
1076
1095
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "html-validate",
3
- "version": "8.15.0",
3
+ "version": "8.16.0",
4
4
  "description": "Offline html5 validator",
5
5
  "keywords": [
6
6
  "html",
@@ -201,7 +201,7 @@
201
201
  "semver": "^7.0.0"
202
202
  },
203
203
  "devDependencies": {
204
- "@html-validate/commitlint-config": "3.2.0",
204
+ "@html-validate/commitlint-config": "3.2.1",
205
205
  "@html-validate/eslint-config": "5.15.0",
206
206
  "@html-validate/eslint-config-jest": "5.15.0",
207
207
  "@html-validate/eslint-config-typescript": "5.15.0",
@@ -219,7 +219,7 @@
219
219
  "@types/babel__code-frame": "7.0.6",
220
220
  "@types/jest": "29.5.12",
221
221
  "@types/minimist": "1.2.5",
222
- "@types/node": "16.18.87",
222
+ "@types/node": "16.18.89",
223
223
  "@types/prompts": "2.4.9",
224
224
  "@types/semver": "7.5.8",
225
225
  "@types/stream-buffers": "3.0.7",
@@ -235,7 +235,7 @@
235
235
  "memfs": "4.7.7",
236
236
  "npm-pkg-lint": "2.2.0",
237
237
  "npm-run-all2": "6.1.2",
238
- "rollup": "4.12.1",
238
+ "rollup": "4.13.0",
239
239
  "rollup-plugin-esbuild": "6.1.1",
240
240
  "stream-buffers": "3.0.2",
241
241
  "ts-jest": "29.1.2",