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

Bug: hidden attribute does not accept string values #24740

Open
jantimon opened this issue Jun 16, 2022 · 2 comments
Open

Bug: hidden attribute does not accept string values #24740

jantimon opened this issue Jun 16, 2022 · 2 comments
Labels
Component: DOM Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug Type: Bug

Comments

@jantimon
Copy link

React version:

 "react": "18.3.0-next-522f47345-20220614",
 "react-dom": "18.3.0-next-522f47345-20220614",

Steps To Reproduce

<span hidden="until-found">Hello React<span>

Link to code example:

https://codesandbox.io/s/headless-violet-ygn593

The current behavior

React will turn hidden into a boolean attribute and removes "until-found":

preview of the dom after react-dom rendered until-found

The expected behavior

React does not strip "until-found" to allow using hidden-until-found in Chrome 102+ for better SEO and accessibility.

@hiddenest
Copy link

@eps1lon Hi! Is there an update on this issue?
Would be nice to have support for.

@pbsmultimedia
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: DOM Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug Type: Bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants