[wp-trac] [WordPress Trac] #45102: Accessibility Issue: id attribute value must be unique
WordPress Trac
noreply at wordpress.org
Wed Oct 17 05:09:55 UTC 2018
#45102: Accessibility Issue: id attribute value must be unique
--------------------------------------+------------------------------
Reporter: picru | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version: 4.9.8
Severity: normal | Resolution:
Keywords: dev-feedback 2nd-opinion | Focuses: accessibility
--------------------------------------+------------------------------
Changes (by mukesh27):
* keywords: ux-feedback needs-patch dev-feedback => dev-feedback 2nd-
opinion
* focuses: => accessibility
* component: Post Formats => Posts, Post Types
Comment:
Hi @picru, Welcome to WordPress Trac! Thank you for your ticket.
Nope, It's perfectly acceptable and not create and accessibility issue.
A class is defined using a {{{.}}} and an ID is defined using a {{{#}}}.
So as far as the browser is concerned, they're two totally separate items.
It's probably best practise to keep the names different purely for code
readability, but there's no harm in them being the same.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45102#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list