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

Miss placing script element inside a polymer element lead to miss leading error message #736

Closed
benzen opened this issue Aug 30, 2014 · 3 comments
Assignees

Comments

@benzen
Copy link

benzen commented Aug 30, 2014

Write this

polymer-element(...)
  template
    script.
    ....

will give the following error "Element name can not be inferred"

@ebidel
Copy link
Contributor

ebidel commented Aug 30, 2014

The <script> needs to be a sibling of the first <template>.

http://www.polymer-project.org/docs/polymer/polymer.html#altregistration

@benzen
Copy link
Author

benzen commented Aug 31, 2014

Thats my understanding. But i think that the doc should state that clearly

Envoyé de mon iPhone

Le 2014-08-30 à 14:33, Eric Bidelman [email protected] a écrit :

The <script> needs to be a sibling of the first .

http://www.polymer-project.org/docs/polymer/polymer.html#altregistration


Reply to this email directly or view it on GitHub.

@ebidel
Copy link
Contributor

ebidel commented Sep 2, 2014

Since all the examples in the docs show <script> outside of the template, I don't think we need addition language to clarify.

@ebidel ebidel closed this as completed Sep 2, 2014
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