Skip to content

Commit ec3e2a0

Browse files
committed
Rerun code generation scripts
- The upstream spec fixed a typo (`scriptDataEscapseStartDash` becomes `scriptDataEscapeStartDash`). - our regen script was missing the ability to rerun without dropping out custom `endTagName` state.
1 parent 476b929 commit ec3e2a0

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

‎commands/codegen/tokenizer-states.js‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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')};

‎src/generated/html5-named-char-refs.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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
*/
55
export default {

‎src/generated/tokenizer-states.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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
*/
55
export 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'

0 commit comments

Comments
 (0)