https://bugzilla.wikimedia.org/show_bug.cgi?id=23733

Happy-melon <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Add classes to messages     |Add IDs to messages used on
                   |used on css/js pages        |css/js pages

--- Comment #3 from Happy-melon <[email protected]> 2010-06-01 08:47:32 UTC 
---
Just because we've been doing it badly in other places doesn't mean we should
continue to do so in new code.  IDs should be used to identify individual
objects; classes should be used where the same styles need to be applied to
multiple places in a document or site.  That is the paradigm around which the
scripts and browsers we use are based: an individual object identified by an ID
can be accessed much more efficiently by JS using getElementById(), for
instance, while there is no native implementation of getElementsByClass(); we
have our own inefficient implementation, but it doesn't work particularly well
or have good cross-browser support.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to