MCPcopy
hub / github.com/sveltejs/svelte / a11y_autofocus

Function a11y_autofocus

packages/svelte/src/compiler/warnings.js:164–166  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

162 * @param {null | NodeLike} node
163 */
164export function a11y_autofocus(node) {
165 w(node, 'a11y_autofocus', `Avoid using autofocus\nhttps://svelte.dev/e/a11y_autofocus`);
166}
167
168/**
169 * Visible, non-interactive element `<%element%>` with a click event must be accompanied by a keyboard event handler. Consider whether an interactive element such as `<button type="button">` or `<a>` might be more appropriate

Callers

nothing calls this directly

Calls 1

wFunction · 0.70

Tested by

no test coverage detected