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

Question about soy reportWarnings #589

Open
poucet opened this issue Jan 31, 2022 · 0 comments
Open

Question about soy reportWarnings #589

poucet opened this issue Jan 31, 2022 · 0 comments

Comments

@poucet
Copy link

poucet commented Jan 31, 2022

Hi,

We use soy templates in our server-side to render a simple <gr-app id="app"></gr-app> template that is then used by our client-side lit code to hook up the full web-app.

We've recently upgraded and we now get the following warning:

Jan 26, 2022 8:43:30 PM com.google.template.soy.SoyFileSet reportWarnings
WARNING: warnings during Soy compilation
com/google/gerrit/httpd/raw/PolyGerritIndexHtml.soy:160: warning: Html id attributes should not be valid JavaScript identifiers, consider hyphenating the id.
160:   <gr-app id="app"></gr-app>{\n}

Given how our code is structured, I don't think this warning is relevant for us.

  • What is the purpose behind this warning?
  • Is there a way to turn it off?

Thank you

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