Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions commands/codegen/tokenizer-states.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ export default function buildTokenizerStates(syntax) {
return g[1].toUpperCase();
});
states.push(state);
// Not in the spec: used to detect closing pre/textarea tags.
if (state === 'tagName') {
states.push('endTagName');
}
}
return `export type TokenizerState =
${states.map(s => ` | '${s}'`).join('\n')};
Expand Down
2 changes: 1 addition & 1 deletion src/generated/html5-named-char-refs.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* generated from https://raw.githubusercontent.com/w3c/html/26b5126f96f736f796b9e29718138919dd513744/entities.json
* generated from https://raw.githubusercontent.com/w3c/html/2ef7a579bcfd2693b98df35f20e51dff60e3fbef/entities.json
* do not edit
*/
export default {
Expand Down
4 changes: 2 additions & 2 deletions src/generated/tokenizer-states.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* generated from https://raw.githubusercontent.com/w3c/html/26b5126f96f736f796b9e29718138919dd513744/sections/syntax.include
* generated from https://raw.githubusercontent.com/w3c/html/2ef7a579bcfd2693b98df35f20e51dff60e3fbef/sections/syntax.include
* do not edit
*/
export type TokenizerState =
Expand All @@ -23,7 +23,7 @@ export type TokenizerState =
| 'scriptDataEndTagOpen'
| 'scriptDataEndTagName'
| 'scriptDataEscapeStart'
| 'scriptDataEscapseStartDash'
| 'scriptDataEscapeStartDash'
| 'scriptDataEscaped'
| 'scriptDataEscapedDash'
| 'scriptDataEscapedDashDash'
Expand Down
Loading