html-validate 8.23.0 → 8.24.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/dist/cjs/index.js CHANGED
@@ -54,7 +54,7 @@ exports.Validator = core.Validator;
54
54
  exports.WrappedError = core.WrappedError;
55
55
  exports.ariaNaming = core.ariaNaming;
56
56
  exports.classifyNodeText = core.classifyNodeText;
57
- exports.configPresets = core.Presets;
57
+ exports.configPresets = core.presets;
58
58
  exports.defineConfig = core.defineConfig;
59
59
  exports.definePlugin = core.definePlugin;
60
60
  exports.formatterFactory = core.getFormatter;
@@ -1,5 +1,5 @@
1
1
  export { c as compatibilityCheck } from './core-browser.js';
2
- export { A as Attribute, C as Config, a as ConfigError, b as ConfigLoader, D as DOMNode, h as DOMTokenList, j as DOMTree, k as DynamicValue, I as EventHandler, l as HtmlElement, H as HtmlValidate, M as MetaCopyableProperty, p as MetaTable, n as NestedError, N as NodeClosed, m as NodeType, E as Parser, z as Reporter, R as ResolvedConfig, r as Rule, o as SchemaValidationError, S as Severity, f as StaticConfigLoader, u as TextClassification, q as TextContent, T as TextNode, U as UserError, V as Validator, W as WrappedError, t as ariaNaming, w as classifyNodeText, P as configPresets, c as defineConfig, B as definePlugin, x as keywordPatternMatcher, F as ruleExists, y as sliceLocation, s as staticResolver, v as version, G as walk } from './core.js';
2
+ export { A as Attribute, C as Config, a as ConfigError, b as ConfigLoader, D as DOMNode, h as DOMTokenList, j as DOMTree, k as DynamicValue, I as EventHandler, l as HtmlElement, H as HtmlValidate, M as MetaCopyableProperty, q as MetaTable, n as NestedError, N as NodeClosed, m as NodeType, P as Parser, B as Reporter, R as ResolvedConfig, t as Rule, o as SchemaValidationError, S as Severity, f as StaticConfigLoader, w as TextClassification, r as TextContent, T as TextNode, U as UserError, V as Validator, W as WrappedError, u as ariaNaming, x as classifyNodeText, p as configPresets, c as defineConfig, E as definePlugin, y as keywordPatternMatcher, F as ruleExists, z as sliceLocation, s as staticResolver, v as version, G as walk } from './core.js';
3
3
  export { d as defineMetadata, m as metadataHelper } from './meta-helper.js';
4
4
  import 'ajv';
5
5
  import './elements.js';
package/dist/es/cli.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { l as legacyRequire, F as FileSystemConfigLoader, c as cjsResolver } from './core-nodejs.js';
2
- import { U as UserError, e as ensureError, g as getFormatter$1, i as ignore, d as deepmerge, S as Severity, H as HtmlValidate, z as Reporter } from './core.js';
2
+ import { U as UserError, e as ensureError, g as getFormatter$1, i as ignore, d as deepmerge, S as Severity, H as HtmlValidate, B as Reporter } from './core.js';
3
3
  import path from 'node:path';
4
4
  import fs from 'fs';
5
5
  import { globSync } from 'glob';
package/dist/es/core.js CHANGED
@@ -10435,7 +10435,7 @@ const TRANSFORMER_API = {
10435
10435
 
10436
10436
  var defaultConfig = {};
10437
10437
 
10438
- const config$4 = {
10438
+ const config$5 = {
10439
10439
  rules: {
10440
10440
  "area-alt": ["error", { accessible: true }],
10441
10441
  "aria-hidden-body": "error",
@@ -10468,6 +10468,25 @@ const config$4 = {
10468
10468
  }
10469
10469
  };
10470
10470
 
10471
+ const config$4 = {
10472
+ rules: {
10473
+ /* doctype is usually not included when fetching source code from browser */
10474
+ "missing-doctype": "off",
10475
+ /* some frameworks (such as jQuery) often uses inline style, e.g. for
10476
+ * showing/hiding elements so it is counter-productive to check for inline
10477
+ * style. If anything it should be used on original sorce code only. */
10478
+ "no-inline-style": "off",
10479
+ /* scripts will often add markup with trailing whitespace */
10480
+ "no-trailing-whitespace": "off",
10481
+ /* browser normalizes boolean attributes */
10482
+ "attribute-boolean-style": "off",
10483
+ "attribute-empty-style": "off",
10484
+ /* the browser will often do what it wants, out of users control */
10485
+ "void-style": "off",
10486
+ "no-self-closing": "off"
10487
+ }
10488
+ };
10489
+
10471
10490
  const config$3 = {
10472
10491
  rules: {
10473
10492
  "input-missing-label": "error",
@@ -10608,7 +10627,8 @@ const config = {
10608
10627
  };
10609
10628
 
10610
10629
  const presets = {
10611
- "html-validate:a11y": config$4,
10630
+ "html-validate:a11y": config$5,
10631
+ "html-validate:browser": config$4,
10612
10632
  "html-validate:document": config$3,
10613
10633
  "html-validate:prettier": config$2,
10614
10634
  "html-validate:recommended": config$1,
@@ -10616,9 +10636,8 @@ const presets = {
10616
10636
  /* @deprecated aliases */
10617
10637
  "htmlvalidate:recommended": config$1,
10618
10638
  "htmlvalidate:document": config$3,
10619
- "html-validate:a17y": config$4
10639
+ "html-validate:a17y": config$5
10620
10640
  };
10621
- var Presets = presets;
10622
10641
 
10623
10642
  class ResolvedConfig {
10624
10643
  /**
@@ -11076,7 +11095,7 @@ class Config {
11076
11095
  }
11077
11096
  loadConfigurations(plugins) {
11078
11097
  const configs = /* @__PURE__ */ new Map();
11079
- for (const [name, config] of Object.entries(Presets)) {
11098
+ for (const [name, config] of Object.entries(presets)) {
11080
11099
  Config.validate(config, name);
11081
11100
  configs.set(name, config);
11082
11101
  }
@@ -12839,7 +12858,7 @@ class HtmlValidate {
12839
12858
  }
12840
12859
 
12841
12860
  const name = "html-validate";
12842
- const version = "8.23.0";
12861
+ const version = "8.24.0";
12843
12862
  const bugs = "https://gitlab.com/html-validate/html-validate/issues/new";
12844
12863
 
12845
12864
  function definePlugin(plugin) {
@@ -13794,5 +13813,5 @@ function compatibilityCheckImpl(name, declared, options) {
13794
13813
  return false;
13795
13814
  }
13796
13815
 
13797
- export { Attribute as A, definePlugin as B, Config as C, DOMNode as D, Parser as E, ruleExists as F, walk as G, HtmlValidate as H, EventHandler as I, compatibilityCheckImpl as J, codeframe as K, name as L, MetaCopyableProperty as M, NodeClosed as N, bugs as O, Presets as P, ResolvedConfig as R, Severity as S, TextNode as T, UserError as U, Validator as V, WrappedError as W, ConfigError as a, ConfigLoader as b, defineConfig as c, deepmerge$1 as d, ensureError as e, StaticConfigLoader as f, getFormatter as g, DOMTokenList as h, ignore$1 as i, DOMTree as j, DynamicValue as k, HtmlElement as l, NodeType as m, NestedError as n, SchemaValidationError as o, MetaTable as p, TextContent$1 as q, Rule as r, staticResolver as s, ariaNaming as t, TextClassification as u, version as v, classifyNodeText as w, keywordPatternMatcher as x, sliceLocation as y, Reporter as z };
13816
+ export { Attribute as A, Reporter as B, Config as C, DOMNode as D, definePlugin as E, ruleExists as F, walk as G, HtmlValidate as H, EventHandler as I, compatibilityCheckImpl as J, codeframe as K, name as L, MetaCopyableProperty as M, NodeClosed as N, bugs as O, Parser as P, ResolvedConfig as R, Severity as S, TextNode as T, UserError as U, Validator as V, WrappedError as W, ConfigError as a, ConfigLoader as b, defineConfig as c, deepmerge$1 as d, ensureError as e, StaticConfigLoader as f, getFormatter as g, DOMTokenList as h, ignore$1 as i, DOMTree as j, DynamicValue as k, HtmlElement as l, NodeType as m, NestedError as n, SchemaValidationError as o, presets as p, MetaTable as q, TextContent$1 as r, staticResolver as s, Rule as t, ariaNaming as u, version as v, TextClassification as w, classifyNodeText as x, keywordPatternMatcher as y, sliceLocation as z };
13798
13817
  //# sourceMappingURL=core.js.map