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

support doctype as a void element #20

Open
ghost opened this issue Nov 6, 2020 · 1 comment
Open

support doctype as a void element #20

ghost opened this issue Nov 6, 2020 · 1 comment

Comments

@ghost
Copy link

ghost commented Nov 6, 2020

hello! I use typed-html for the root template of my website server-side.
however, as it does not seem to support the doctype tag, I have to add <!DOCTYPE html> as a string and append it to generated html. this works, but it feels like more of a hack than a proper solution.
is it possible to add doctype void tag support, or is there something i'm missing here?

@arthurfiorette
Copy link

<!NAME> syntax is not a valid JSX syntax. Is far more easier just to add return "<!DOCTYPE html>" + html than creating a custom component for it.

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

1 participant