[wp-trac] [WordPress Trac] #58009: HTML API: Expose self-closing flag in Tag Processor

WordPress Trac noreply at wordpress.org
Wed Mar 29 12:30:42 UTC 2023


#58009: HTML API: Expose self-closing flag in Tag Processor
-------------------------+-----------------------------
 Reporter:  dmsnell      |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  General      |    Version:
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 Introduce `has_self_closing_flag()` to the  HTML Tag Processor, exposing
 whether a currently-matched tag contains the self-closing flag /, used
 when determining if one needs to look for a closing tag of the same name.

 This enables structural parsing of an HTML document and is needed to
 identify self-closing HTML foreign elements.

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


More information about the wp-trac mailing list