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

Meta tags overwriting each other #22

Open
nipatiitti opened this issue Nov 23, 2022 · 1 comment
Open

Meta tags overwriting each other #22

nipatiitti opened this issue Nov 23, 2022 · 1 comment

Comments

@nipatiitti
Copy link

nipatiitti commented Nov 23, 2022

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.

@yume-chan
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants