-
Notifications
You must be signed in to change notification settings - Fork 49.2k
Open
Description
React version:
Steps To Reproduce
- SSR
<meta name="test" />
(renderToString
andrenderToReadableStream
)
Link to code example:
- Working in 18.2: https://codesandbox.io/s/18-2-ssr-meta-only-working-t6lxvw
- render nothing in 18.3-5fcf1a4b4c2150a1b9fe0de0144a82a053c63966: https://codesandbox.io/s/18-3-5fcf1a4b4c2150a1b9fe0de0144a82a053c63966-ssr-meta-only-bug-woguy0?file=/src/index.js
The current behavior
Renders empty string
The expected behavior
Renders <meta name="test" />
Don't know if that's a valid use case but it should at least warn that the meta tag is malformed?
This broke the attribute fixture (originally reported in #25927).
Also:
<meta name="description" content={content} />
renders nothing unlesscontent
is a string.<meta http-equiv />
i.e. anyhttp-equiv
usage no longer renders anything. It used to warn at least.