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

Function a11y_distracting_elements

packages/svelte/src/compiler/warnings.js:190–192  ·  view source on GitHub ↗
(node, name)

Source from the content-addressed store, hash-verified

188 * @param {string} name
189 */
190export function a11y_distracting_elements(node, name) {
191 w(node, 'a11y_distracting_elements', `Avoid \`<${name}>\` elements\nhttps://svelte.dev/e/a11y_distracting_elements`);
192}
193
194/**
195 * `<figcaption>` must be first or last child of `<figure>`

Callers

nothing calls this directly

Calls 1

wFunction · 0.70

Tested by

no test coverage detected