diff --git a/documentation/docs/98-reference/30-compiler-errors.md b/documentation/docs/98-reference/30-compiler-errors.md index 4ba4761eea..b1d2c1161f 100644 --- a/documentation/docs/98-reference/30-compiler-errors.md +++ b/documentation/docs/98-reference/30-compiler-errors.md @@ -279,7 +279,7 @@ generated: 'generated by process-messages/index.js' ## `import_svelte_internal_forbidden` -> [!NOTE] Imports of 'svelte/internal/*' are forbidden. It contains private runtime code which is subject to change without notice. If you're importing from 'svelte/internal/*' to work around a limitation of Svelte, please open an issue at https://github.com/sveltejs/svelte and explain your use case +> [!NOTE] Imports of 'svelte/internal/\*' are forbidden. It contains private runtime code which is subject to change without notice. If you're importing from 'svelte/internal/\*' to work around a limitation of Svelte, please open an issue at https://github.com/sveltejs/svelte and explain your use case ## `invalid_arguments_usage` diff --git a/documentation/docs/98-reference/30-compiler-warnings.md b/documentation/docs/98-reference/30-compiler-warnings.md index 6cc22d2e66..6a2c27f525 100644 --- a/documentation/docs/98-reference/30-compiler-warnings.md +++ b/documentation/docs/98-reference/30-compiler-warnings.md @@ -25,6 +25,7 @@ You can list multiple rules in a single comment (separated by commas), and add a Enforce no `accesskey` on element. Access keys are HTML attributes that allow web developers to assign keyboard shortcuts to elements. Inconsistencies between keyboard shortcuts and keyboard commands used by screen reader and keyboard-only users create accessibility complications. To avoid complications, access keys should not be used. + ```svelte
@@ -43,7 +44,7 @@ An element with `aria-activedescendant` must be tabbable, so it must either have ## `a11y_aria_attributes` -> [!NOTE] '\<%name%>' should not have aria-* attributes +> [!NOTE] '\<%name%>' should not have aria-\* attributes Certain reserved DOM elements do not support ARIA roles, states and properties. This is often because they are not visible, for example `meta`, `html`, `script`, `style`. This rule enforces that these DOM elements do not contain the `aria-*` props. @@ -376,6 +377,7 @@ A non-interactive element does not support event handlers (mouse and key handler Tab key navigation should be limited to elements on the page that can be interacted with. + ```svelte @@ -401,6 +403,7 @@ Some HTML elements have default ARIA roles. Giving these elements an ARIA role t Elements like `