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

Fix case when <script> or <style> contains a <!⁠[CDATA[…]]> section #1656

Closed
ExE-Boss opened this issue Dec 8, 2018 · 0 comments · Fixed by #1660
Closed

Fix case when <script> or <style> contains a <!⁠[CDATA[…]]> section #1656

ExE-Boss opened this issue Dec 8, 2018 · 0 comments · Fixed by #1660

Comments

@ExE-Boss
Copy link
Contributor

ExE-Boss commented Dec 8, 2018

When <script> or <style> contains a <!⁠[CDATA[…]]> section then code inside the section isn’t properly highlighted:

<script type="application/javascript"><![CDATA[
let stuff;
alert("</script>");
]]></script>

<style type="text/css"><![CDATA[
.stuff {
	…
}
]]></style>

See for a live example:

@ExE-Boss ExE-Boss changed the title Fix case when <script> or <style> contains a <![CDATA[…]]> section Fix case when <script> or <style> contains a <![CDATA[…]]> section Dec 8, 2018
@ExE-Boss ExE-Boss changed the title Fix case when <script> or <style> contains a <![CDATA[…]]> section Fix case when <script> or <style> contains a <!⁠[CDATA[…]]> section Dec 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants