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

Tokenizing issue when a SCRIPT contains a TITLE end #745

Closed
BenoitZugmeyer opened this issue Mar 7, 2021 · 3 comments · Fixed by #746
Closed

Tokenizing issue when a SCRIPT contains a TITLE end #745

BenoitZugmeyer opened this issue Mar 7, 2021 · 3 comments · Fixed by #746
Labels

Comments

@BenoitZugmeyer
Copy link

As reported in eslint-plugin-html, using </title> in a <script> tag yields strange results. Ex:

<script>'</title>'</script>

Expected:
  opentagname script
  opentag script {}
  text '</title>'
  closetag script

Actual:
  opentagname script
  opentag script {}
  text ''
  closetag script
<script>'</title><foo>'</script>

Expected:
  opentagname script
  opentag script {}
  text '</title><foo>'
  closetag script

Actual:
  opentagname script
  opentag script {}
  text '
  opentagname foo
  opentag foo {}
  text '
  closetag foo
  closetag script
@fb55 fb55 added the bug label Mar 7, 2021
@fb55
Copy link
Owner

fb55 commented Mar 7, 2021

Whoa, very interesting issue. Thanks for the report!

@fb55
Copy link
Owner

fb55 commented Mar 7, 2021

Okay, fixed this and published a new version as 6.0.1.

@BenoitZugmeyer
Copy link
Author

Great! That was quick ☺️ thank you very much.

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

2 participants