Skip to content

Bug: SSR of malformed? meta renders nothing(working in 18.2) #25928

@eps1lon

Description

@eps1lon

React version:

Steps To Reproduce

  1. SSR <meta name="test" /> (renderToString and renderToReadableStream)

Link to code example:

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:

  1. <meta name="description" content={content} /> renders nothing unless content is a string.
  2. <meta http-equiv /> i.e. any http-equiv usage no longer renders anything. It used to warn at least.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions