[wp-trac] [WordPress Trac] #59993: HTML API: Track spans of text with (offset, length) instead of (start, end)

WordPress Trac noreply at wordpress.org
Sun Dec 10 13:17:53 UTC 2023


#59993: HTML API: Track spans of text with (offset, length) instead of (start, end)
-------------------------+------------------------------
 Reporter:  dmsnell      |       Owner:  zieladam
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  HTML API     |     Version:  trunk
 Severity:  normal       |  Resolution:  fixed
 Keywords:  has-patch    |     Focuses:
-------------------------+------------------------------
Changes (by zieladam):

 * owner:  (none) => zieladam
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"57179" 57179]:
 {{{
 #!CommitTicketReference repository="" revision="57179"
 HTML API: Track spans of text with (offset, length) instead of (start,
 end).

 Updates the internal representation of the text span coordinates. The
 mixture of (offset, length) and (start, end) coordinates becomes
 confusing, this commit replaces it with a (offset, length) pair. There
 should be no functional or behavioral changes in this patch. For the
 internal helper classes this patch introduces breaking changes, but those
 classes are marked private and should not be used outside of the HTML API
 itself.

 Props dmsnell.
 Fixes #59993.
 }}}

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


More information about the wp-trac mailing list