Skip to content

Meta tags overwriting each other #22

Open

Description

@nipatiitti

Reproduced example: https://stackblitz.com/edit/solidjs-templates-zamsr7?file=src/App.tsx

Code

<Meta http-equiv="X-UA-Compatible" content="IE=edge" />
<Meta charset="utf-8" />

Expected behavior

Both meta tags render in the <head /> as would happen if you do:

<meta http-equiv="X-UA-Compatible" content="IE=edge" >
<meta charset="utf-8" >

Observed behavior

Only the latter of the 2 meta tags is rendered and the other just disappears.

Activity

  1. yume-chan commented on Jun 12, 2023

    @yume-chan
    Contributor

    Looks like this library only handles <meta> tags that have a name attribute.

    For projects using Solid-Start, the <HttpHeader> component (https://start.solidjs.com/api/HttpHeader) might be used in place of <Meta http-equiv> to partially workaround this.

  2. dennev commented on Aug 11, 2025

    @dennev
    Contributor

    In the current version of the Solid Start environment, both meta tags appear to be inserted correctly regardless of the name attribute, so there does not seem to be a problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions