[wp-trac] [WordPress Trac] #46747: Recent Comments widget can add duplicate ID to page
WordPress Trac
noreply at wordpress.org
Thu Aug 1 09:37:34 UTC 2019
#46747: Recent Comments widget can add duplicate ID to page
------------------------------------------+-----------------------
Reporter: mbrailer | Owner: audrasjb
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 5.3
Component: Widgets | Version: 5.1
Severity: normal | Resolution:
Keywords: needs-dev-note needs-refresh | Focuses:
------------------------------------------+-----------------------
Changes (by audrasjb):
* keywords: has-patch needs-dev-note => needs-dev-note needs-refresh
* severity: minor => normal
Comment:
Hi,
There is an issue with the last patch. In several themes, we still have
duplicate IDs. Not when two widgets are used, but inside the code of each
widget.
Here is an example of HTML output with twenty eleven:
`aside` and `ul` elements have the same id.
{{{
<aside id="recent-comments-2" class="widget widget_recent_comments">
<h3 class="widget-title">Commentaires récents</h3>
<ul id="recent-comments-2" class="recentcomments"></ul>
</aside>
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46747#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list