[wp-trac] [WordPress Trac] #63891: Processing directives function in interactivity API class may cause fatal error
WordPress Trac
noreply at wordpress.org
Thu Sep 4 10:00:37 UTC 2025
#63891: Processing directives function in interactivity API class may cause fatal
error
--------------------------------------+--------------------------------
Reporter: hugosolar | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.9
Component: Interactivity API | Version: 6.5
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses: php-compatibility
--------------------------------------+--------------------------------
Comment (by zieladam):
> The issue with </br> is identical to with an unexpected </p>. These tags
cannot contain HTML attributes and so return null.
AFAIR closing tags can contain attributes. The
[https://html.spec.whatwg.org/#before-attribute-name-state HTML spec] has
this parsing path:
Tag open state -> End tag open state -> Tag Name State -> before attribute
name state -> attribute name state.
I remember we've discussed that in context of the inline token / funky
comments and decided not to expose them.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63891#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list