Skip to content

fix: parse `<style>` content as text instead of markup

David Sveningsson requested to merge bugfix/issue-137-style-parsing into master

fixes #137 (closed)

The content of the <style> tag is CSS and can contain < forming tokens appearing to be HTML tags and under certain conditions could break the state machine and causing a parser error.

This fix is similar to the <script> tag where the content is parsed as raw text.

Checklist

  • Documentation updated
  • Change covered by a testcase
  • Commit history cleaned (no WIP, fixups, etc)
Edited by David Sveningsson

Merge request reports