[wp-trac] [WordPress Trac] #59291: HTML API: Expose raw tag markup to support existing filters
WordPress Trac
noreply at wordpress.org
Tue Sep 5 21:26:35 UTC 2023
#59291: HTML API: Expose raw tag markup to support existing filters
-------------------------+-----------------------------
Reporter: dmsnell | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: HTML API | Version: trunk
Severity: normal | Keywords: has-patch
Focuses: |
-------------------------+-----------------------------
Many existing filters in Core (e.g. `wp_targeted_link_rel`) pass segments
of the raw HTML markup for matched tags where code implementing those
hooks perform futher analyis on those segments. The HTML API attempts to
hide the raw inner markup as much as possible, making it hard to provide
full backwards compatability with these existing filters.
In this patch a new function is added which extracts the raw markup to
maintain those existing behaviors. It requires a disclaimer to operate to
try and encourage folks to use the structural and semantic methods
provided by the HTML API.
Where possible, existing code and filters should be updated so that they
no longer depend on the raw HTML.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59291>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list