Skip to content

Commit 9314ef7

Browse files
RReversergsnedders
authored andcommittedJul 25, 2017
Add a list of currently allowed initial states (#101)
Fixes #99
1 parent 0d35eb6 commit 9314ef7

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed
 

Diff for: ‎tokenizer/README.md

+11-2
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,18 @@ into the corresponding Unicode code point. (Note that this option also
4545
affects the interpretation of `test.output`.)
4646

4747
`test.initialStates` is a list of strings, each being the name of a
48-
tokenizer state. The test should be run once for each string, using it
48+
tokenizer state which can be one of the following:
49+
50+
- `Data state`
51+
- `PLAINTEXT state`
52+
- `RCDATA state`
53+
- `RAWTEXT state`
54+
- `Script data state`
55+
- `CDATA section state`
56+
57+
The test should be run once for each string, using it
4958
to set the tokenizer's initial state for that run. If
50-
`test.initialStates` is omitted, it defaults to `["data state"]`.
59+
`test.initialStates` is omitted, it defaults to `["Data state"]`.
5160

5261
`test.lastStartTag` is a lowercase string that should be used as "the
5362
tag name of the last start tag to have been emitted from this

0 commit comments

Comments
 (0)
Please sign in to comment.