mirror of https://github.com/sveltejs/svelte
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
560 B
19 lines
560 B
1 year ago
|
<script>
|
||
|
const dynamicRole = "button";
|
||
|
</script>
|
||
|
|
||
|
<!-- valid -->
|
||
|
<button on:click={() => {}} />
|
||
|
<!-- svelte-ignore a11y-interactive-supports-focus -->
|
||
|
<div on:keydown={() => {}} role="button" />
|
||
|
<input type="text" on:click={() => {}} />
|
||
|
<div on:copy={() => {}} />
|
||
|
<a href="/foo" on:click={() => {}}>link</a>
|
||
|
<div role={dynamicRole} on:click={() => {}} />
|
||
|
<footer on:keydown={() => {}} />
|
||
|
|
||
|
<!-- invalid -->
|
||
|
<div on:keydown={() => {}} />
|
||
|
<!-- svelte-ignore a11y-missing-attribute -->
|
||
|
<a on:mousedown={() => {}} on:mouseup={() => {}} on:copy={() => {}}>link</a>
|