Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Svelte 5: a11y-structure regression #10370

Closed
mrwokkel opened this issue Feb 1, 2024 · 1 comment
Closed

Svelte 5: a11y-structure regression #10370

mrwokkel opened this issue Feb 1, 2024 · 1 comment
Labels
Milestone

Comments

@mrwokkel
Copy link

mrwokkel commented Feb 1, 2024

Describe the bug

<script lang="ts">
  // whithout lang="ts" no warning.
</script>

<figure>
  <figcaption>A a11y-structure regression</figcaption>
</figure>

Gives a A11y: <figcaption> must be an immediate child of <figure> warning

It dit not when using "svelte": "5.0.0-next.43"

Reproduction

https://github.com/mrwokkel/figcaption/blob/main/src/routes/%2Bpage.svelte

Logs

No response

System Info

System:
    OS: macOS 14.3
    CPU: (10) arm64 Apple M1 Max
    Memory: 92.84 MB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.10.0 - ~/.nvm/versions/node/v20.10.0/bin/node
    npm: 10.2.3 - ~/.nvm/versions/node/v20.10.0/bin/npm
    pnpm: 8.15.1 - ~/Library/pnpm/pnpm
  Browsers:
    Chrome: 121.0.6167.139
    Safari: 17.3
  npmPackages:
    svelte: 5.0.0-next.44 => 5.0.0-next.44

Severity

annoyance

@dummdidumm
Copy link
Member

Will be fixed by Rich-Harris/zimmerframe#18 and Rich-Harris/zimmerframe#19

@dummdidumm dummdidumm added this to the 5.0 milestone Feb 2, 2024
@dummdidumm dummdidumm added the bug label Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants