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

Wrong initialization of the script extraction algorithm #1417

Closed
wants to merge 1 commit into from

Conversation

BenoitZugmeyer
Copy link
Contributor

Right now, the script extraction fails if we have text before the first script tag (ex: <html><title>foo</title><script>...) because the algorithm thinks it is part of the script.

We should wait for the first script tag before extracting scripts. This changes some of the unit tests as well, but --extract always is basically the equivalent of saying that the input file is an html file (because it is treated like one).

Wait for a <script> tag before considering that we are in a script.
valueof pushed a commit that referenced this pull request Dec 13, 2013
Signed-off-by: Anton Kovalyov <anton@kovalyov.net>
valueof pushed a commit that referenced this pull request Dec 13, 2013
Signed-off-by: Anton Kovalyov <anton@kovalyov.net>
@valueof
Copy link
Member

valueof commented Dec 13, 2013

Thank you, I've landed your patch both into 2.x and master branches.

@valueof valueof closed this Dec 13, 2013
jugglinmike pushed a commit to jugglinmike/jshint that referenced this pull request Oct 21, 2014
…itives

Signed-off-by: Anton Kovalyov <anton@kovalyov.net>
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

2 participants