-
- Downloads
fix: parse `<style>` content as text instead of markup
fixes #137 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.
parent
7e12d507
No related branches found
No related tags found
Showing
- elements/html5.json 0 additions, 1 deletionelements/html5.json
- src/context/context.ts 1 addition, 0 deletionssrc/context/context.ts
- src/context/state.ts 1 addition, 0 deletionssrc/context/state.ts
- src/lexer/lexer.spec.ts 162 additions, 69 deletionssrc/lexer/lexer.spec.ts
- src/lexer/lexer.ts 27 additions, 5 deletionssrc/lexer/lexer.ts
- src/lexer/token.ts 1 addition, 0 deletionssrc/lexer/token.ts
- src/parser/parser.spec.ts 34 additions, 0 deletionssrc/parser/parser.spec.ts
Loading
-
mentioned in commit 582c22c3
-
mentioned in merge request demo!92 (merged)
-
mentioned in merge request protractor-html-validate!74 (merged)
Please register or sign in to comment