[wp-trac] [WordPress Trac] #58009: HTML API: Expose self-closing flag in Tag Processor
WordPress Trac
noreply at wordpress.org
Tue Apr 4 10:05:00 UTC 2023
#58009: HTML API: Expose self-closing flag in Tag Processor
--------------------------------------+------------------------------
Reporter: dmsnell | Owner: Bernhard Reiter
Type: enhancement | Status: closed
Priority: normal | Milestone: Awaiting Review
Component: HTML API | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+------------------------------
Changes (by Bernhard Reiter):
* owner: (none) => Bernhard Reiter
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"55619" 55619]:
{{{
#!CommitTicketReference repository="" revision="55619"
HTML API: Add `has_self_closing_flag()` to Tag Processor.
In this patch we're adding `has_self_closing_flag()` to the HTML Tag
Processor.
This exposes whether a currently-matched tag contains the self-closing
flag `/`.
This information is critical for the evolution of the HTML API in order
to track and parse HTML structure, specifically, knowing whether an
HTML foreign element is self-closing or not.
Props dmsnell, zieladam.
Fixes #58009.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58009#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list