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

Ensure TextNodes are quoted in AttrNode.value #135

Merged

Conversation

rwjblue
Copy link
Member

@rwjblue rwjblue commented Oct 11, 2019

Previously, when converting an AttrNode from data-foo={{anything}} to data-foo="some text" we would not emit quotes surrounding the new AttrNode value, and therefore would emit invalid HTML/HBS output.

This problem was restricted to scenarios where the original AttrNode's value was unquoted (e.g. it was a mustache value).

Fixes #111

Previously, when converting an `AttrNode` from `data-foo={{anything}}`
to `data-foo="some text"` we would not emit quotes surrounding the new
`AttrNode` value, and therefore would emit invalid HTML/HBS output.

This problem was restricted to scenarios where the _original_
`AttrNode`'s value was unquoted (e.g. it was a mustache value).
@rwjblue rwjblue added the bug Something isn't working label Oct 11, 2019
@rwjblue rwjblue merged commit 6f3850e into ember-template-lint:master Oct 11, 2019
@rwjblue rwjblue deleted the fix-missing-quotes-on-textnode branch October 11, 2019 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Changing argument values to a string - missing quotes in most cases
1 participant