#62363 closed defect (bug) (fixed)
HTML API: Expects closer should report true on svg:input element
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 6.7.2 | Priority: | normal |
Severity: | normal | Version: | 6.7 |
Component: | HTML API | Keywords: | has-patch has-unit-tests fixed-major dev-reviewed |
Focuses: | Cc: |
Description
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>
Change History (15)
This ticket was mentioned in PR #7752 on WordPress/wordpress-develop by @jonsurrell.
6 months ago
#1
- Keywords has-patch has-unit-tests added
@Bernhard Reiter commented on PR #7752:
6 months ago
#3
Committed to Core trunk
in https://core.trac.wordpress.org/changeset/59392.
#4
@
6 months ago
- Keywords dev-feedback fixed-major added
- Resolution fixed deleted
- Status changed from closed to reopened
Re-opening to seek approval by another committer to backport to the 6.7 branch.
This ticket was mentioned in Slack in #core by jorbin. View the logs.
4 months ago
#9
@
4 months ago
The change was merged to trunk but not 6.7 branch for inclusion in 6.7.2. [59392] would need to be backported to the 6.7 branch.
This ticket was mentioned in Slack in #core by jorbin. View the logs.
3 months ago
This ticket was mentioned in PR #8173 on WordPress/wordpress-develop by @westonruter.
3 months ago
#11
This cherry-picks r59392 into the 6.7 branch.
Trac ticket: https://core.trac.wordpress.org/ticket/62363
#12
@
3 months ago
I've opened a PR for the backport: https://github.com/WordPress/wordpress-develop/pull/8173
Ensure that
expects_closer
returns false on tags that look like void HTML tags, but are actually _not_ void tags in foreign content.Trac ticket: https://core.trac.wordpress.org/ticket/62363