moment there is a lot of code duplication. The thing I’m thinking about most
here is checking if an element has a class, and adding a class if it doesn’t
exist. This isn’t only in webbased toolkits, like
Firebug also defines
these functions, and I’m sure most people doing any sort of slightly more
complex web development needs, or could do with these being defined at a
A cursory glance of the the WHAT-WG specs doesn’t show anything regarding this sort of modification. I’m interested in what other
people have to say about it.