[wp-trac] [WordPress Trac] #61581: HTML Processor should respect `tag_name` argument in `next_tag()`

WordPress Trac noreply at wordpress.org
Sat Jul 6 10:15:56 UTC 2024


#61581: HTML Processor should respect `tag_name` argument in `next_tag()`
--------------------------+--------------------
 Reporter:  dmsnell       |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  6.7
Component:  HTML API      |    Version:  6.4
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+--------------------
 The HTML Processor currently ignores the `tag_name` provided if provided
 in its array form.

 {{{#!php
 <?php
 $processor->next_tag( array( 'tag_name' => 'DIV' ) );
 }}}

 It returns //the next tag// regardless of its name. It should instead
 continue scanning until it finds a tag of the given name or reaches the
 end of the document.

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


More information about the wp-trac mailing list