Opened 3 weeks ago
Last modified 12 days ago
#62085 new enhancement
HTML API: Stop counting no-op seek operations against the quota.
Reported by: | dmsnell | Owned by: | |
---|---|---|---|
Milestone: | 6.8 | Priority: | normal |
Severity: | normal | Version: | trunk |
Component: | HTML API | Keywords: | has-patch has-unit-tests |
Focuses: | Cc: |
Description
The HTML Tag Processor limits how many times seek()
may be called. This is in place to guard against accidental infinite loops introduced by code which might bounce between bookmarks in an unintentional cycle.
Some code might call seek()
on a bookmark where the internal cursor already is. Since a seek to the current locations involves essentially no processing, and is less likely to be the result of an unseen cycle, the HTML Tag Processor should ignore these calls against the quota.
Change History (4)
This ticket was mentioned in PR #7399 on WordPress/wordpress-develop by @dmsnell.
3 weeks ago
#2
- Keywords has-patch has-unit-tests added
Trac ticket: Core-62085
Note: See
TracTickets for help on using
tickets.
After proposing this, I'm now wondering if it's wrong to open up the quote because I think it's also similarly likely that an accidental infinite loop could involve no-op seeks. Perhaps we want a different getter to report if the processor has moved from a bookmark?
cc: @westonruter @jonsurrell