[wp-trac] [WordPress Trac] #64513: HTML_Processor gets wrong breadcrumbs for elements in <head>

WordPress Trac noreply at wordpress.org
Thu Jan 15 23:24:24 UTC 2026


#64513: HTML_Processor gets wrong breadcrumbs for elements in <head>
--------------------------+------------------------------
 Reporter:  vicobot       |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  HTML API      |     Version:  6.9
 Severity:  normal        |  Resolution:
 Keywords:  close         |     Focuses:
--------------------------+------------------------------
Changes (by westonruter):

 * keywords:   => close


Comment:

 @vicobot this is because you're parsing in BODY mode. You need to use
 `WP_HTML_Processor::create_full_parser()` instead of
 `WP_HTML_Processor::create_fragment()`.

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


More information about the wp-trac mailing list