Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
sirreal committed Nov 5, 2024
1 parent 5d75bb7 commit 541b4f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/wp-includes/html-api/class-wp-html-processor.php
Original file line number Diff line number Diff line change
Expand Up @@ -5343,6 +5343,7 @@ public function seek( $bookmark_name ): bool {
*/
$this->state->stack_of_open_elements = new WP_HTML_Open_Elements();
$this->state->active_formatting_elements = new WP_HTML_Active_Formatting_Elements();
$this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_INITIAL;

$this->breadcrumbs = array();
$this->bytes_already_parsed = 0;
Expand Down Expand Up @@ -5381,7 +5382,7 @@ public function seek( $bookmark_name ): bool {
return true;
}

while ( $this->next_token() ) {
while ( var_dump( $this->next_token() ) ) {
echo 'bm starts at ' . $bookmark_starts_at . ' and current token starts at ' . $this->bookmarks[ $this->state->current_token->bookmark_name ]->start . "\n";
if ( $bookmark_starts_at === $this->bookmarks[ $this->state->current_token->bookmark_name ]->start ) {
while ( isset( $this->current_element ) && WP_HTML_Stack_Event::POP === $this->current_element->operation ) {
Expand Down

0 comments on commit 541b4f6

Please sign in to comment.