Skip to content

Commit 541b4f6

Browse files
committed
wip
1 parent 5d75bb7 commit 541b4f6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/wp-includes/html-api/class-wp-html-processor.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5343,6 +5343,7 @@ public function seek( $bookmark_name ): bool {
53435343
*/
53445344
$this->state->stack_of_open_elements = new WP_HTML_Open_Elements();
53455345
$this->state->active_formatting_elements = new WP_HTML_Active_Formatting_Elements();
5346+
$this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_INITIAL;
53465347

53475348
$this->breadcrumbs = array();
53485349
$this->bytes_already_parsed = 0;
@@ -5381,7 +5382,7 @@ public function seek( $bookmark_name ): bool {
53815382
return true;
53825383
}
53835384

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

0 commit comments

Comments
 (0)