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

!doctype causes an error #336

Closed
thoughtspile opened this issue Mar 5, 2017 · 4 comments
Closed

!doctype causes an error #336

thoughtspile opened this issue Mar 5, 2017 · 4 comments
Labels

Comments

@thoughtspile
Copy link

Currently, <!DOCTYPE html> raises an error (!DOCTYPE was left open). This is probably only relevant to SSR.
(REPL)[https://svelte.technology/repl/?version=1.10.0&gist=881e409ef1a972e7a86e9a1748ced90e]

@thoughtspile thoughtspile changed the title Handle doctype !doctype causes an error Mar 5, 2017
@Conduitry
Copy link
Member

This was actually a case sensitivity issue. <!doctype html> parsed fine, but <!DOCTYPE html> threw an error. Should be resolved by #340

@Conduitry
Copy link
Member

Bumped into some issues in #340. In the meantime, just using lowercase for the element name will work around this.

@Rich-Harris
Copy link
Member

We could make a special case for doctype, since it's not uncommon to see it uppercased — treating it as a void element is a bit of a hack in the first place

@Conduitry
Copy link
Member

That sounds like a good compromise for now, just submitted a PR

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

Successfully merging a pull request may close this issue.

3 participants