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

Outputting attribute and value containing '=' truncates the value (EJS & Mustache) #342

Merged
merged 1 commit into from
Apr 8, 2013

Conversation

ccummings
Copy link
Contributor

If an HTML attribute is output using EJS or Mustache, any value that has a '=' in it will be truncated when live binding updates it. This can be observed in the fiddle below:

http://jsfiddle.net/NMvAd/

This is a problem particularly for src since the workaround to avoid an initial 404 (#157) involves outputting src= along with the value.

The problem is in render.js, specifically the update function that runs when you are in a tag, but not an attribute.

@ghost ghost assigned ccummings Apr 2, 2013
daffl added a commit that referenced this pull request Apr 8, 2013
Outputting attribute and value containing '=' truncates the value (EJS & Mustache)
@daffl daffl merged commit 1aac092 into master Apr 8, 2013
@daffl daffl deleted the issue-342 branch April 8, 2013 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants