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 html> can not be parsed by soy #219

Closed
peterborkuti opened this issue Mar 18, 2017 · 2 comments
Closed

<!DOCTYPE html> can not be parsed by soy #219

peterborkuti opened this issue Mar 18, 2017 · 2 comments

Comments

@peterborkuti
Copy link

peterborkuti commented Mar 18, 2017

Hi,

I'd like to create soy templates like

{namespace IFrameDoctype}


/**
 *
 */
{template .render}
    <!DOCTYPE html>
    <html>
      <head>
      </head>
      <body>
      </body>
    </html>
{/template}

However, HTMLParser could not parse <!DOCTYPE>.
I started to fixing HTMLParser, however I have read, that this is not an html tag (https://www.w3schools.com/tags/tag_doctype.asp) so probably not HTMLParser is responsible for this.

What do you think?
Google's SoyToJsSrcCompiler.jar can create a js from a Soy template which contains <!DOCTYPE html>.

Thank you in advance
Péter

@fernandosouza
Copy link
Contributor

Hi, @peterborkuti. Thank you for reporting this. In order to help us understanding the problem, could you share the error message?

@peterborkuti
Copy link
Author

Hi @fernandosouza,

Sorry for reporting this, now I could not reproduce the issue.

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