diff --git a/.changeset/breezy-flies-check.md b/.changeset/breezy-flies-check.md new file mode 100644 index 00000000..4f2f8fd7 --- /dev/null +++ b/.changeset/breezy-flies-check.md @@ -0,0 +1,5 @@ +--- +"@marko/language-server": patch +--- + +fix(axe-core): disabled experimental rules diff --git a/packages/language-server/src/__tests__/fixtures/html/focus-order-semantics/__snapshots__/focus-order-semantics.expected/index.md b/packages/language-server/src/__tests__/fixtures/html/focus-order-semantics/__snapshots__/focus-order-semantics.expected/index.md deleted file mode 100644 index 0b96ad24..00000000 --- a/packages/language-server/src/__tests__/fixtures/html/focus-order-semantics/__snapshots__/focus-order-semantics.expected/index.md +++ /dev/null @@ -1,9 +0,0 @@ -## Diagnostics -### Ln 1, Col 2 -```marko -> 1 |
This is a div, but it is focusable
- | ^^^ Fix any of the following: - Element does not have a widget role. - Element has invalid semantics for an element in the focus order. -``` - diff --git a/packages/language-server/src/__tests__/fixtures/html/focus-order-semantics/index.marko b/packages/language-server/src/__tests__/fixtures/html/focus-order-semantics/index.marko deleted file mode 100644 index 07a7a241..00000000 --- a/packages/language-server/src/__tests__/fixtures/html/focus-order-semantics/index.marko +++ /dev/null @@ -1 +0,0 @@ -
This is a div, but it is focusable
\ No newline at end of file diff --git a/packages/language-server/src/service/html/axe-rules/axe-rules.ts b/packages/language-server/src/service/html/axe-rules/axe-rules.ts index c67981e3..62a932bf 100644 --- a/packages/language-server/src/service/html/axe-rules/axe-rules.ts +++ b/packages/language-server/src/service/html/axe-rules/axe-rules.ts @@ -1,274 +1,299 @@ export const keyboard = { /** - * - Ensures every accesskey attribute value is unique - * - accesskey attribute value should be unique ([url](https://dequeuniversity.com/rules/axe/4.7/accesskeys?application=axeAPI)) + * - Ensure every accesskey attribute value is unique + * - accesskey attribute value should be unique ([url](https://dequeuniversity.com/rules/axe/4.10/accesskeys?application=axeAPI)) */ accesskeys: "accesskeys", /** - * - Ensures each page has at least one mechanism for a user to bypass navigation and jump straight to the content - * - Page must have means to bypass repeated blocks ([url](https://dequeuniversity.com/rules/axe/4.7/bypass?application=axeAPI)) + * - Ensure each page has at least one mechanism for a user to bypass navigation and jump straight to the content + * - Page must have means to bypass repeated blocks ([url](https://dequeuniversity.com/rules/axe/4.10/bypass?application=axeAPI)) */ bypass: "bypass", /** - * - Ensures elements in the focus order have a role appropriate for interactive content - * - Elements in the focus order should have an appropriate role ([url](https://dequeuniversity.com/rules/axe/4.7/focus-order-semantics?application=axeAPI)) + * - Ensure elements in the focus order have a role appropriate for interactive content + * - Elements in the focus order should have an appropriate role ([url](https://dequeuniversity.com/rules/axe/4.10/focus-order-semantics?application=axeAPI)) */ focusOrderSemantics: "focus-order-semantics", /** - * - Ensures `` and `