[wp-trac] [WordPress Trac] #60428: HTML API: Reset parser state after seeking to bookmark.

WordPress Trac noreply at wordpress.org
Fri Feb 2 22:33:55 UTC 2024


#60428: HTML API: Reset parser state after seeking to bookmark.
--------------------------+-----------------------------
 Reporter:  dmsnell       |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  HTML API      |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 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

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/60428>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list