-
Notifications
You must be signed in to change notification settings - Fork 51k
Bug: hidden attribute does not accept string values #24740
Copy link
Copy link
Open
Labels
Component: DOMStatus: UnconfirmedA potential issue that we haven't yet confirmed as a bugA potential issue that we haven't yet confirmed as a bugType: Bug
Description
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":
The expected behavior
React does not strip "until-found" to allow using hidden-until-found in Chrome 102+ for better SEO and accessibility.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Component: DOMStatus: UnconfirmedA potential issue that we haven't yet confirmed as a bugA potential issue that we haven't yet confirmed as a bugType: Bug
Type
Fields
Give feedbackNo fields configured for issues without a type.
