[wp-trac] [WordPress Trac] #58517: HTML API: Introduce HTML Processor, a higher-level partner to the Tag Processor

WordPress Trac noreply at wordpress.org
Thu May 23 22:43:42 UTC 2024


#58517: HTML API: Introduce HTML Processor, a higher-level partner to the Tag
Processor
-------------------------------------------------+-------------------------
 Reporter:  dmsnell                              |       Owner:  Bernhard
                                                 |  Reiter
     Type:  enhancement                          |      Status:  closed
 Priority:  normal                               |   Milestone:  6.4
Component:  HTML API                             |     Version:
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-unit-tests 2nd-opinion has-      |     Focuses:
  patch                                          |
-------------------------------------------------+-------------------------

Comment (by dmsnell):

 In [changeset:"58190" 58190]:
 {{{
 #!CommitTicketReference repository="" revision="58190"
 HTML API: Respect `class_name` query arg in `HTML_Processor::next_tag()`

 Previously the HTML Process was ignoring the `class_name` argument in
 the `next_tag()` query if it existed. This was wrong and would lead to
 calling code finding the wrong tag if provided.

 This patch adds the class detection code back into `next_tag()` to fix
 the bug.

 Developed in https://github.com/WordPress/wordpress-develop/pull/6618
 Discussed in https://core.trac.wordpress.org/ticket/58517

 See #58517.
 Follow-up to [56274].
 Props: dmsnell, jonsurrell.
 }}}

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


More information about the wp-trac mailing list