[wp-trac] [WordPress Trac] #62363: HTML API: Expects closer should report true on svg:input element
WordPress Trac
noreply at wordpress.org
Fri Nov 8 17:37:20 UTC 2024
#62363: HTML API: Expects closer should report true on svg:input element
--------------------------+------------------------
Reporter: jonsurrell | Owner: jonsurrell
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 6.7.1
Component: HTML API | Version:
Severity: normal | Keywords:
Focuses: |
--------------------------+------------------------
Some tags that look like void elements can be added in other namespaces.
`<input>` is a good example.
`expects_closer` is intended to indicate whether a given should be closed
by another tag or if it's self-closing in some way (void, "atomic," etc.).
This `input` tag is a void tag, `expects_closer` correctly returns `true`
on the input token:
{{{
<body><input>
}}}
This `input` tag is not a void tag. It's a tag in the `svg` namespace,
`expects_closer` should return `false` on the input token, but it returns
`true`:
{{{
<svg><input>
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62363>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list