[wp-trac] [WordPress Trac] #60392: HTML API: Tag processor no longer visits all closing tags

WordPress Trac noreply at wordpress.org
Thu Feb 1 00:19:22 UTC 2024


#60392: HTML API: Tag processor no longer visits all closing tags
--------------------------+---------------------
 Reporter:  westonruter   |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  6.5
Component:  HTML API      |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:  close         |     Focuses:
--------------------------+---------------------

Comment (by dmsnell):

 @westonruter it looks like you made appropriate changes there. Note that
 you may still encounter closing tags of these types, but only if they are
 unexpected. In your script though this should be fine as I don't think
 you'll have the elements on the stack to pop off, and I think you skip
 popping from the stack if the bottom element isn't the same as what you
 scan with the HTML API.

 Soon I hope to be at the point where you can fully switch to the HTML
 Processor where none of this will have to be replicated in your own
 application-level code.

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


More information about the wp-trac mailing list