[wp-trac] [WordPress Trac] #63546: Fix unclosed li element in plugin-editor.php
WordPress Trac
noreply at wordpress.org
Sun Jun 8 18:31:00 UTC 2025
#63546: Fix unclosed li element in plugin-editor.php
-------------------------------+-----------------------------
Reporter: dkarfa | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: trunk
Severity: normal | Keywords: needs-patch
Focuses: ui, accessibility |
-------------------------------+-----------------------------
**Actual Behavior**
In src/wp-admin/plugin-editor.php at line 287, there is an opening `<li>`
tag with role="treeitem" and other attributes, but it doesn't have any
content directly inside it before the nested `<ul>` element, and there's
no closing `</li>` tag.
**Steps to Reproduce**
1. Navigate to src/wp-admin/plugin-editor.php
2. Look at line 287 where there's an opening `<li>` tag.
3. Notice that there's no closing `</li>` tag for this element.
**Expected Behavior**
The `<li>` element should either have content before the nested `<ul>` or
be properly closed with a `</li>` tag after the nested `<ul>` element.
This would ensure proper HTML structure and accessibility compliance.
**This issue is important to fix because:**
1. It creates an invalid HTML structure.
2. It may cause accessibility issues since the ARIA roles are being used.
3. It could potentially cause rendering inconsistencies across browsers.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63546>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list