[wp-trac] [WordPress Trac] #46964: ID attribute value are used multiple times in "Custom Field" form
WordPress Trac
noreply at wordpress.org
Wed Feb 26 12:10:20 UTC 2020
#46964: ID attribute value are used multiple times in "Custom Field" form
-------------------------------------------------+-------------------------
Reporter: jankimoradiya | Owner: audrasjb
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 5.4
Component: Editor | Version: 5.0
Severity: normal | Resolution:
Keywords: has-screenshots has-patch early | Focuses: ui,
needs-dev-note | accessibility
-------------------------------------------------+-------------------------
Comment (by jadpm):
Hi there
I am the team leader for Toolset, and we are also affected by the change
here, just adding our own use case here if someone is interested.
We do use the `#postbox-container-2` ID for several items. We have some
objects that we edit in the post legacy editor, but that require some
wizard steps when created, and we manpulate the edit page look&feel by
hooking into existing HTML structures. That I is one that we do use and
rely on. We can change it to be a classname, no problem there, but I tend
to believe that we are aproachign the problem wrong.
My 2c on the issue: we have several `#postbox-container-X` IDs for some
containers. Because, as stated above, they used to idenitfy draggable
elements. If we have a repetition on IDs then we should probably target
that repetition, check why we have it, and eventually solve it by avoiding
the repeated items (something like a `#postbox-container-2-X` ID for
recurring items?).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46964#comment:44>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list