Commit f23387a
testharness: Use right lastStartTag w/ script data
This change ensures that TokenizerTester uses the correct, expected
lastStartTag value from the test source when the initialStates value in
the test source includes “Script data state” — or else if the test
source specifies no lastStartTag, then “script” is used as the value.
Otherwise, without this change, TokenizerTester is hardcoded to always
use “script” as the lastStartTag when running a test case with
“Script data state” as the initial state. That discrepancy causes us to
fail the following case from the html5lib-tests suite:
* https://github.com/html5lib/html5lib-tests/blob/master/tokenizer/domjs.test#L219-L223
("lowercase endtags")1 parent 7f0ae26 commit f23387a
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
| 167 | + | |
167 | 168 | | |
168 | | - | |
| 169 | + | |
169 | 170 | | |
170 | 171 | | |
171 | 172 | | |
| |||
0 commit comments