tag:blogger.com,1999:blog-752094859566372098.post3633090359900584074..comments2023-10-12T11:42:26.498+02:00Comments on St. on IT: Native Element#classList in FF 3.6 Against RightJSNikolay V. Nemshilovhttp://www.blogger.com/profile/11826995023912878683noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-752094859566372098.post-11469510085478775332010-03-09T10:36:19.456+02:002010-03-09T10:36:19.456+02:00That is a good pointThat is a good pointNikolay V. Nemshilovhttps://www.blogger.com/profile/11826995023912878683noreply@blogger.comtag:blogger.com,1999:blog-752094859566372098.post-47734317523038880692010-03-09T10:28:42.293+02:002010-03-09T10:28:42.293+02:00I guess, the “lousy” implementation in Firefox at ...I guess, the “lousy” implementation in Firefox at least conforms with the specs. According to the W3C spec, classes may not only be separated by spaces, but by any whitespace character. Check http://www.w3.org/TR/html4/struct/global.html#adef-class<br /><br />Your “proper” implementation does not work with class attributes that contain class name separators different from 0x20. You are comparing apples to oranges. Write code conforming to the spec, and do the benchmark once again.Anonymoushttps://www.blogger.com/profile/04832262073504227018noreply@blogger.com