[wp-trac] [WordPress Trac] #59643: HTML API: Scan to end of tag when getting updated HTML output.

WordPress Trac noreply at wordpress.org
Tue Oct 17 10:37:50 UTC 2023


#59643: HTML API: Scan to end of tag when getting updated HTML output.
--------------------------+-----------------------------
 Reporter:  dmsnell       |       Owner:  SergeyBiryukov
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  6.4
Component:  HTML API      |     Version:  trunk
 Severity:  major         |  Resolution:  fixed
 Keywords:  has-patch     |     Focuses:
--------------------------+-----------------------------
Changes (by SergeyBiryukov):

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


Comment:

 In [changeset:"56953" 56953]:
 {{{
 #!CommitTicketReference repository="" revision="56953"
 HTML API: Scan to end of tag when getting updated HTML output.

 When applying updates to HTML, one step was left out in [56941] which
 updated the position of the end of the current tag. This made it possible
 to create bookmarks with null or earlier end positions than their start
 position. This in turn broke the Directive Processor in Gutenberg during
 the backport of changes from Core into Gutenberg.

 In this commit, after applying updates, the HTML document is now scanned
 fully to the end of the current tag, updating the internal pointer to its
 end, so that nothing else will be broken or misaligned.

 Follow-up to [56941].

 Props dmsnell.
 Fixes #59643.
 }}}

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


More information about the wp-trac mailing list