Commit 3d77195
committed
HTML API: Reset parser state after seeking to bookmark.
When parser states were introduced in WordPress#5683,
nothing in the `seek()` method reset the parser state. This is
problematic because it could leave the parser in the wrong state.
In this patch the parser state is reset so that it get's properly
adjusted on the successive call to `next_token()`.
Follows [57348]
Props @kevin940726 for finding and reporting.1 parent 235cb39 commit 3d77195
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2335 | 2335 | | |
2336 | 2336 | | |
2337 | 2337 | | |
| 2338 | + | |
2338 | 2339 | | |
2339 | 2340 | | |
2340 | 2341 | | |
| |||
0 commit comments