[wp-trac] [WordPress Trac] #62521: HTML Processor virtual token seek does not seek to correct location
WordPress Trac
noreply at wordpress.org
Fri Nov 22 10:12:06 UTC 2024
#62521: HTML Processor virtual token seek does not seek to correct location
--------------------------+------------------------------
Reporter: jonsurrell | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: HTML API | Version: 6.7
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by jonsurrell):
Seeking relies on moving to a specific location in the HTML string and
advancing to the next token at that location. This means that seeking to
virtual tokens unsupported.
I think the most reasonable thing when attempting to set a bookmark at a
virtual token is to return `false` and refuse to set the bookmark.
There could be some much more complicated virtual token accounting, but
that would introduce significant complexity and can be considered an
enhancement.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62521#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list