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

Skip tokenization for text in script tags #21

Closed
ryanhollister opened this issue Apr 13, 2015 · 0 comments · Fixed by #69
Closed

Skip tokenization for text in script tags #21

ryanhollister opened this issue Apr 13, 2015 · 0 comments · Fixed by #69

Comments

@ryanhollister
Copy link

I understand simple-html-tokenizer is not going to tokenize script tags, but it seems it should not throw an exception on them. I started in htmlbars repo but was directed here. See:

http://emberjs.jsbin.com/jocafazaxa/1/edit?html,js,console

Expected behavior here would be that the sort function is available on the window object.

Note that changing the operator to a '>' works fine.

If simple-html-tokenizer were to simply recognize it is inside of a script tag and to skip tokenization until a closing script tag is found, this would be sufficient.

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 a pull request may close this issue.

1 participant