Commit 22b4a08
committed
HTML API: Reset parser state after seeking to bookmark.
When parser states were introduced, 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's properly adjusted on
the successive call to `next_token()`.
Developed in WordPress/wordpress-develop#6021
Discussed in https://core.trac.wordpress.org/ticket/60428
Follow-up to [57211]
Props dmsnell, kevin940726
Fixes #60428
Built from https://develop.svn.wordpress.org/trunk@57527
git-svn-id: http://core.svn.wordpress.org/trunk@57028 1a063a9b-81f0-0310-95a4-ce76da25c4cd1 parent 742e8aa commit 22b4a08
2 files changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2335 | 2335 | | |
2336 | 2336 | | |
2337 | 2337 | | |
| 2338 | + | |
2338 | 2339 | | |
2339 | 2340 | | |
2340 | 2341 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
0 commit comments