[wp-trac] [WordPress Trac] #64537: Block Processor: Extracting full block missing nested content.

WordPress Trac noreply at wordpress.org
Wed Jan 21 17:39:16 UTC 2026


#64537: Block Processor: Extracting full block missing nested content.
--------------------------------------+-----------------------
 Reporter:  dmsnell                   |       Owner:  dmsnell
     Type:  defect (bug)              |      Status:  assigned
 Priority:  normal                    |   Milestone:  6.9.1
Component:  Editor                    |     Version:  6.9
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+-----------------------
Description changed by dmsnell:

Old description:

> The behavior of `WP_Block_Processor::extract_full_block_and_advance()`
> should produce an identical output to what `parse_blocks()` would return
> on the same substring of input.
>
> It has difficulties in certain nested contexts. In the following case,
> the trailing `</ul>` is missing. In several test cases the trailing HTML
> span is missing, at least from `innerContent`.
>
> {{{
> <!-- wp:columns --><ul><!-- wp:column --><li>Hi</li><!-- /wp:column
> --></ul><!-- /wp:columns>
> }}}
>
> There is likely a problem in the recursive part of the algorithm, or in
> recognizing HTML spans, or in performing proper stack accounting, or all
> three.
>
> Reported by @jonsurrell

New description:

 The behavior of `WP_Block_Processor::extract_full_block_and_advance()`
 should produce an identical output to what `parse_blocks()` would return
 on the same substring of input.

 It has difficulties in certain nested contexts. In the following case, the
 trailing `</ul>` is missing. In several test cases the trailing HTML span
 is missing, at least from `innerContent`.

 {{{
 <!-- wp:columns --><ul><!-- wp:column --><li>Hi</li><!-- /wp:column
 --></ul><!-- /wp:columns -->
 }}}

 There is likely a problem in the recursive part of the algorithm, or in
 recognizing HTML spans, or in performing proper stack accounting, or all
 three.

 Reported by @jonsurrell

--

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/64537#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list