Thanks to visit codestin.com
Credit goes to github.com

Skip to content

The value of the hidden attribute is incorrect #16750

@shamokit

Description

@shamokit

Describe the bug

Sometimes the value "until-found" for the hidden attribute is not correct.

Reproduction

OK

<svelte:element this={'div'} hidden="until-found">aaa</svelte:element>
<div hidden="until-found">aaa</div>

-> <div hidden="until-found">aaa</div>

NG

<div {...{ hidden: 'until-found' }}>aaa</div>
{@const hidden = 'until-found'}
<div {hidden}>aaa</div>

-> <div hidden>aaa</div>

Logs

System Info

System:
    OS: macOS 15.6.1
    CPU: (12) arm64 Apple M4 Pro
    Memory: 644.67 MB / 48.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 22.16.0 - /usr/local/bin/node
    npm: 11.4.1 - /usr/local/bin/npm
    pnpm: 10.12.1 - /usr/local/bin/pnpm
  Browsers:
    Chrome: 139.0.7258.155
    Safari: 18.6
  npmPackages:
    svelte: ^5.38.9 => 5.38.9

Severity

annoyance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions