[wp-trac] [WordPress Trac] #61301: HTML API: Tag bookmark length is incorrect

WordPress Trac noreply at wordpress.org
Wed May 29 10:56:17 UTC 2024


#61301: HTML API: Tag bookmark length is incorrect
-----------------------------------------------------+---------------------
 Reporter:  jonsurrell                               |       Owner:  (none)
     Type:  defect (bug)                             |      Status:  new
 Priority:  normal                                   |   Milestone:  6.6
Component:  HTML API                                 |     Version:  6.5
 Severity:  normal                                   |  Resolution:
 Keywords:  has-patch has-unit-tests needs-dev-note  |     Focuses:
-----------------------------------------------------+---------------------

Comment (by jonsurrell):

 Yes, I don't think this needs a full dev note but should definitely have a
 mention like the following:

 > A bug was fixed in the `WP_HTML_Tag_Processor` where tag token
 bookmarks. This bug affected classes that extend the
 `WP_HTML_Tag_Processor` or `WP_HTML_Processor` classes and access tag
 bookmark or token lengths directly. Affected classes would have needed to
 correct the token length by adding 1. The tag length has been fixed and
 this correction should be removed in WordPress 6.6.

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


More information about the wp-trac mailing list