[wp-trac] [WordPress Trac] #18974: Plugin table IDs can collide with core IDs
WordPress Trac
wp-trac at lists.automattic.com
Fri Oct 28 13:46:18 UTC 2011
#18974: Plugin table IDs can collide with core IDs
----------------------------+-----------------------------
Reporter: Viper007Bond | Owner:
Type: defect (bug) | Status: new
Priority: low | Milestone: Future Release
Component: Administration | Version: 3.3
Severity: minor | Resolution:
Keywords: |
----------------------------+-----------------------------
Comment (by azaozz):
Replying to [comment:9 mikeschinkel]:
> ...That does assume that all IDs on a page are unique, of course.
Agreed, but that's the inherited problem with HTML IDs when dynamically
generating it from many different PHP functions: in some cases IDs can be
repeated which breaks the DOM.
IMHO best option is to use (plugin unique) class names and target them
after looking at the DOM, i.e. limiting the DOM range.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18974#comment:10>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list