Working with Classes

Within many of the Javascript libraries that are floating around at the
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
YUI and
Prototype, but
Joe Hewitt‘s
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
browser/platform level.

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.

372 thoughts on “Working with Classes

  1. I and also my friends have been checking the best tips and hints on your web site while unexpectedly got an awful suspicion I never thanked the blog owner for those secrets. Those men came as a consequence happy to learn them and have certainly been having fun with these things. Many thanks for indeed being so accommodating as well as for deciding on this form of superb guides millions of individuals are really desirous to understand about. My honest apologies for not expressing appreciation to you earlier.

  2. My wife and i ended up being quite contented when Ervin could finish off his inquiry through your ideas he obtained using your site. It’s not at all simplistic to simply continually be giving for free tactics that many men and women might have been trying to sell. And we all grasp we have got the writer to appreciate for this. Most of the explanations you’ve made, the straightforward web site navigation, the friendships your site help engender – it is everything awesome, and it’s helping our son and the family feel that the subject is enjoyable, and that’s tremendously important. Thanks for all!

  3. I am glad for writing to let you understand of the useful experience my wife’s princess went through reading through your web page. She noticed several issues, most notably how it is like to possess an incredible coaching spirit to get the others clearly know precisely several tortuous subject matter. You undoubtedly surpassed readers’ expectations. Thank you for rendering such good, safe, explanatory and also easy tips about that topic to Sandra.

  4. My husband and i got absolutely excited when Edward managed to carry out his analysis because of the precious recommendations he got out of the blog. It is now and again perplexing to simply possibly be giving out tricks others might have been selling. And now we consider we now have the blog owner to thank because of that. The type of explanations you made, the simple blog navigation, the relationships you can assist to foster – it’s most spectacular, and it’s leading our son and us understand the subject is amusing, and that is extraordinarily indispensable. Thanks for all!

  5. I would like to express my thanks to you for rescuing me from this particular scenario. Because of surfing around throughout the the web and obtaining recommendations that were not beneficial, I believed my entire life was done. Living minus the approaches to the problems you have resolved by way of the guideline is a crucial case, and those which may have badly affected my career if I had not discovered your web page. Your primary talents and kindness in maneuvering everything was vital. I don’t know what I would’ve done if I had not discovered such a subject like this. It’s possible to at this point look forward to my future. Thanks a lot very much for your skilled and amazing guide. I won’t hesitate to recommend your web sites to any person who should receive recommendations on this subject.

  6. I as well as my pals ended up following the nice secrets on your web blog and so then I had a terrible suspicion I never expressed respect to the blog owner for those tips. All of the young men came for that reason happy to study them and have now sincerely been taking pleasure in those things. We appreciate you actually being quite thoughtful and for deciding on certain smart topics millions of individuals are really desirous to learn about. My personal honest apologies for not saying thanks to you earlier.

  7. I would like to express some thanks to the writer for bailing me out of this circumstance. Right after exploring through the world wide web and obtaining concepts that were not powerful, I was thinking my life was done. Being alive minus the strategies to the issues you have sorted out all through your good post is a serious case, as well as the ones that could have in a negative way damaged my entire career if I hadn’t come across the blog. Your own personal know-how and kindness in touching every item was vital. I am not sure what I would’ve done if I hadn’t come upon such a step like this. I am able to now relish my future. Thanks a lot very much for the specialized and amazing guide. I won’t be reluctant to recommend your web page to anyone who requires guidance on this issue.

  8. I am just commenting to make you be aware of of the awesome discovery my friend’s daughter gained reading through your site. She realized a good number of issues, with the inclusion of what it is like to possess an excellent teaching mindset to let many more without difficulty know selected complicated subject matter. You really surpassed our expectations. Thanks for giving these powerful, dependable, revealing and in addition unique thoughts on that topic to Tanya.

  9. I am only commenting to let you be aware of of the incredible experience my daughter obtained reading your webblog. She even learned numerous things, which include what it is like to possess an ideal helping character to get the mediocre ones with ease learn about a variety of very confusing things. You undoubtedly exceeded readers’ expected results. Many thanks for showing these precious, healthy, educational as well as easy thoughts on the topic to Kate.

  10. Needed to compose you this very small observation so as to give thanks once again on your splendid ideas you’ve featured on this website. It was certainly seriously open-handed of you to grant easily precisely what many of us might have advertised as an ebook to help with making some dough on their own, primarily considering that you might well have tried it if you considered necessary. Those basics likewise worked to become a good way to comprehend some people have the same interest much like mine to figure out much more related to this matter. I am certain there are thousands of more pleasurable sessions ahead for individuals that read carefully your blog post.

  11. I wanted to draft you this bit of note just to say thanks a lot the moment again with your fantastic guidelines you have featured on this website. It was quite particularly open-handed with you to give openly just what a lot of people could have supplied for an e-book to help with making some bucks on their own, primarily considering the fact that you could have done it if you wanted. Those techniques likewise served like a great way to fully grasp that many people have the identical desire the same as my own to understand significantly more on the topic of this problem. I think there are some more enjoyable times in the future for people who take a look at your blog post.

  12. Thanks a lot for giving everyone an exceptionally wonderful opportunity to read in detail from this website. It is often very brilliant and full of a lot of fun for me personally and my office co-workers to search the blog on the least three times every week to learn the newest issues you have. And of course, I’m just always impressed considering the good methods you serve. Certain 2 facts in this article are undoubtedly the most efficient I’ve ever had.

  13. I wanted to write down a brief note to be able to appreciate you for the nice tricks you are sharing on this site. My extended internet research has finally been honored with professional strategies to talk about with my best friends. I ‘d believe that we website visitors are undeniably fortunate to live in a very good network with many brilliant professionals with helpful tips. I feel truly blessed to have seen the web pages and look forward to so many more fun times reading here. Thanks once more for everything.

  14. My husband and i were more than happy when Emmanuel managed to round up his reports with the precious recommendations he received out of your blog. It is now and again perplexing to simply find yourself giving freely thoughts which a number of people might have been trying to sell. So we understand we have got the website owner to appreciate for that. The type of illustrations you have made, the straightforward blog menu, the relationships you can make it easier to instill – it’s everything remarkable, and it is leading our son in addition to our family believe that the concept is interesting, which is certainly exceptionally important. Many thanks for the whole thing!

  15. I together with my buddies came taking note of the excellent hints located on your web blog and so all of the sudden I got a terrible suspicion I never thanked you for those tips. Most of the people are actually consequently passionate to read them and have now pretty much been taking pleasure in these things. Many thanks for being indeed helpful and for considering this sort of extraordinary subject areas millions of individuals are really desperate to be aware of. My very own sincere apologies for not expressing gratitude to you earlier.

  16. I together with my guys happened to be looking at the excellent advice on your web page then the sudden I got a horrible suspicion I never thanked the web site owner for those techniques. My young boys ended up so very interested to learn them and have very much been having fun with them. Appreciation for genuinely well helpful as well as for obtaining varieties of beneficial topics most people are really desirous to be informed on. My honest apologies for not expressing gratitude to you earlier.

  17. Thanks so much for giving everyone an extraordinarily special chance to discover important secrets from this web site. It really is very superb and packed with a great time for me personally and my office fellow workers to visit your site minimum 3 times a week to read the fresh stuff you have got. And definitely, I’m at all times motivated for the good strategies served by you. Selected two facts in this article are unequivocally the simplest we have all ever had.

  18. A lot of thanks for each of your effort on this web page. Kim takes pleasure in getting into research and it’s really easy to see why. My partner and i learn all regarding the dynamic mode you give effective guidance through this web blog and cause participation from visitors about this subject matter and my child is in fact starting to learn a lot. Take pleasure in the rest of the new year. You are conducting a great job.

  19. I wanted to write you that tiny remark in order to thank you very much yet again on your unique opinions you’ve featured at this time. It has been quite open-handed with people like you to provide openly all a number of people would have advertised as an e-book to end up making some dough for their own end, specifically now that you could possibly have tried it if you desired. The advice likewise acted to be the easy way to be aware that many people have the same eagerness the same as my very own to figure out a little more with regard to this problem. I am certain there are several more enjoyable instances ahead for individuals who start reading your site.

  20. I wish to point out my gratitude for your kind-heartedness supporting people that must have assistance with this concept. Your personal commitment to passing the solution around appeared to be certainly informative and have consistently empowered ladies like me to reach their goals. Your informative facts signifies a great deal to me and especially to my office workers. Many thanks; from all of us.

Leave a Reply

Your email address will not be published. Required fields are marked *