#60428 closed defect (bug) (fixed)
HTML API: Reset parser state after seeking to bookmark.
Reported by: | dmsnell | Owned by: | dmsnell |
---|---|---|---|
Milestone: | 6.5 | Priority: | normal |
Severity: | normal | Version: | 6.5 |
Component: | HTML API | Keywords: | has-patch has-unit-tests |
Focuses: | Cc: |
Description
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 get's properly adjusted on the successive call to next_token().
Follow-up to [57211]
Props dmsnell, kevin940726
Change History (4)
#1
@
10 months ago
- Keywords has-patch needs-unit-tests added
- Milestone changed from Awaiting Review to 6.5
This ticket was mentioned in PR #6021 on WordPress/wordpress-develop by @dmsnell.
10 months ago
#2
- Keywords has-unit-tests added; needs-unit-tests removed
Note: See
TracTickets for help on using
tickets.
Trac ticket: Core-60428
When parser states were introduced in WordPress/wordpress-develop#5725, 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 [57211]
See Trac ticket 60170
Props @kevin940726 for finding and reporting.