File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,6 +9,10 @@ export default function buildTokenizerStates(syntax) {
99 return g [ 1 ] . toUpperCase ( ) ;
1010 } ) ;
1111 states . push ( state ) ;
12+ // Not in the spec: used to detect closing pre/textarea tags.
13+ if ( state === 'tagName' ) {
14+ states . push ( 'endTagName' ) ;
15+ }
1216 }
1317 return `export type TokenizerState =
1418${ states . map ( s => ` | '${ s } '` ) . join ( '\n' ) } ;
Original file line number Diff line number Diff line change 11/**
2- * generated from https://raw.githubusercontent.com/w3c/html/26b5126f96f736f796b9e29718138919dd513744 /entities.json
2+ * generated from https://raw.githubusercontent.com/w3c/html/2ef7a579bcfd2693b98df35f20e51dff60e3fbef /entities.json
33 * do not edit
44 */
55export default {
Original file line number Diff line number Diff line change 11/**
2- * generated from https://raw.githubusercontent.com/w3c/html/26b5126f96f736f796b9e29718138919dd513744 /sections/syntax.include
2+ * generated from https://raw.githubusercontent.com/w3c/html/2ef7a579bcfd2693b98df35f20e51dff60e3fbef /sections/syntax.include
33 * do not edit
44 */
55export type TokenizerState =
@@ -23,7 +23,7 @@ export type TokenizerState =
2323 | 'scriptDataEndTagOpen'
2424 | 'scriptDataEndTagName'
2525 | 'scriptDataEscapeStart'
26- | 'scriptDataEscapseStartDash '
26+ | 'scriptDataEscapeStartDash '
2727 | 'scriptDataEscaped'
2828 | 'scriptDataEscapedDash'
2929 | 'scriptDataEscapedDashDash'
You can’t perform that action at this time.
0 commit comments