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

WordPress Trac noreply at wordpress.org
Mon May 27 18:09:12 UTC 2024


#61301: HTML API: Tag bookmark length is incorrect
--------------------------+-----------------------------
 Reporter:  jonsurrell    |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  HTML API      |    Version:  6.5
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Opening tag tokens in the HTML API are incorrect. I'd expect that `substr(
 $html, $token_start, $token_length );` to produce the entire tag.
 Currently, this produces the tags up to (but not including) the final `>`.
 A tag like `<div>` has a length `4`, so the result would be `<div`.

 This is largely internal, although classes extending the tag processor
 observe this bug through bookmarks.

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


More information about the wp-trac mailing list