-
Notifications
You must be signed in to change notification settings - Fork 396
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
Template rendering: triple mustache creates an invisible content #551
Comments
allow triples to work inside SVG elements (fixes #551)
Good spot. Triples weren't working inside SVG elements because they use The image = $0; // get a reference to currently selected element in HTML panel
image.getAttributeNS('http://www.w3.org/1999/xlink', 'href'); // returns the URL - correct namespace
image.getAttributeNS('http://www.w3.org/1999/xhtml', 'href'); // returns nothing - wrong namespace
image.getAttribute('href'); // returns the URL - namespace doesn't matter Thanks for raising this - fixed now: http://cdn.ractivejs.org/edge/ractive.js (fiddle) |
Awesome!!! Thank you very much for quickly fixing this and the other issue (uppercase HTML tags). I tested the updated JS file in my project and it works perfectly! |
|
I wanted to insert a piece of code inside an SVG and nothing shows up. The code appears to be there but it looks like as if it was inserted in such a way that the browser didn't parse it.
I made a fiddle to demonstrate it: http://jsfiddle.net/DUB8K/2/
While at it, I found another bug: the attribute xlink:href gets changed to href. Which in this case doesn't yet cause an problem but it could be an issue with other SVG elements. This is also shown on the screenshot below.
As you can see in the screenshot the code inserted with triple mustache shows as greyed out in Firebug.
The text was updated successfully, but these errors were encountered: