[wp-trac] [WordPress Trac] #61617: HTML API: Add method to replace modifiable text.
WordPress Trac
noreply at wordpress.org
Thu Aug 8 04:24:19 UTC 2024
#61617: HTML API: Add method to replace modifiable text.
--------------------------------------+----------------------
Reporter: dmsnell | Owner: dmsnell
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.7
Component: HTML API | Version: 6.6
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+----------------------
Changes (by dmsnell):
* status: reopened => closed
* resolution: => fixed
Comment:
In [changeset:"58866" 58866]:
{{{
#!CommitTicketReference repository="" revision="58866"
HTML API: Ensure that `get_modifiable_text()` reads enqueued updates.
When `set_modifiable_text()` was added to the Tag Processor, it was
considered that the same information could be queried after setting its
value and before proceeding to the next token, but unfortunately
overlooked that if the starting modifiable text length was zero, then the
read in `get_modifiable_text()` would ignore enqueued updates.
In this patch, `get_modifiable_text()` will read any enqueued values
before reading from the input HTML document to ensure consistency.
Follow-up to [58829].
Props dmsnell, jonsurrell, ramonopoly.
Fixes #61617.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61617#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list