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

When using certain html-comments, can.view.Scanner does not recognize them correctly #598

Merged
merged 2 commits into from
Dec 9, 2013

Conversation

simpleTechs
Copy link

When using some html-comments (namely all comments, that don’t have a space/tab/newline after the starting <!—), can.view.Scanner incorrectly recognize them as tags instead of comments and therefore tries to bind them (which breaks other bindings).

This pull request contains a breaking test for the problem as well as a proposed fix.
Note: The fix will have a negative impact on overall-performance, though I find it too small to measure how much exactly (I just ran the mustache-tests with and without the fix, didn't make a difference that could not have been cause by normal variation).

….view.Scanner (by being recognized as tags instead of comments)
…ts (namely all comments, that don’t have a space/tab/newline after the starting `<!—`) as tags instead of comments and therefore try to bind them (which breaks other bindings)
daffl added a commit that referenced this pull request Dec 9, 2013
When using certain html-comments, can.view.Scanner does not recognize them correctly
@daffl daffl merged commit 9852bfa into canjs:master Dec 9, 2013
@simpleTechs simpleTechs deleted the html-comments branch December 9, 2013 23:22
@0ff 0ff restored the html-comments branch December 12, 2013 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants