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

Tag renders js instead of content when no attributes present #1309

Closed
mikeauclair opened this issue Nov 3, 2015 · 5 comments
Closed

Tag renders js instead of content when no attributes present #1309

mikeauclair opened this issue Nov 3, 2015 · 5 comments

Comments

@mikeauclair
Copy link

Plunker: http://plnkr.co/edit/KMK3j6H6JfRu6bYnws68?p=preview

Occasionally tags w/ no attributes and only text content render out their riot.tag JS declaration.

If the bugged h3 in the plunker is placed last in the template (right before the this.title assignment), the following exception is thrown:

screenshot 2015-11-03 13 23 22

@Havunen
Copy link
Contributor

Havunen commented Nov 3, 2015

I think this is indentation issue just indent it like in docs and it works ok.

example: http://plnkr.co/edit/ySwFfpYhIzx4HAqFFRsP?p=preview

@GianlucaGuarini
Copy link
Member

@Havunen you are right. @mikeauclair have you checked your tags with riot my-tag.tag --check? Please check also Tag syntax

@GianlucaGuarini
Copy link
Member

@mikeauclair I have tried to indent correctly your example http://plnkr.co/edit/SRr39wxzN3vnu3x3tPKQ?p=preview remember that compiling your tags before using them is always the best solution

@aMarCruz
Copy link
Contributor

@mikeauclair code works fine with riot 2.3.1

@GianlucaGuarini
Copy link
Member

this issue got fixed http://plnkr.co/edit/9tcFwXKxEoHZkBuljlRz?p=preview

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

No branches or pull requests

4 participants