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

Parse Error when a stache template contains SVG content #1132

asavoy opened this Issue Jun 30, 2014 · 0 comments


None yet
2 participants

asavoy commented Jun 30, 2014

When a stache template is rendered with SVG content, it raises a Parse Error. Here's a breaking example.

Uncaught Parse Error: <circle r="25" cx="25" cy="25" fill="#00cc66"></circle>

I tried adding svg and circle into the lists of tags in can/view/parser/parser.js but it doesn't help.

asavoy added a commit to asavoy/canjs that referenced this issue Jul 3, 2014

Added failing test cases for #1132 - stache raises parser error on SV…
…G elements because parser doesn't support single-char attributes.

@justinbmeyer justinbmeyer added this to the 2.1.3 milestone Jul 23, 2014

@justinbmeyer justinbmeyer added the Bug label Jul 23, 2014

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