[jQuery] Trailing spaces with add/removeClass

[jQuery] Trailing spaces with add/removeClass

Hi,
I just found a weird bug in some browsers, like for example, Safari: <a href="http://dump.kkaefer.com/jquery-testcase/02-class-safari.html">http://dump.kkaefer.com/jquery-testcase/02-class-safari.html</a>
If the class name of an element contains trailing (or leading) spaces, removeClass() doesn't work correctly. I experienced this also with dynamically added/removed classes (thus no leading spaces *directly* in the html code).
Is that bug already documentated?
Konstantin
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/