[jQuery] cross-browser compatibility with for attribute
Hi,
I love to work with this library because of the beatifully compact
code it allows me to write.
I think there is a browser compatibility problem with xpath searches
using attributes like 'for' and 'class'. These work fine on
gecko-based browsers, while you need to use 'htmlFor' and 'className'
on IE6/Win.
Try this:
alert($("//div[@className]").size());
alert($("//div[@class]").size());
and this:
alert($("//label[@htmlFor]").size());
alert($("//label[@for]").size());
on Firefox or IE6/Win and you'll see where the problem is.
Otherwise, great work.
Andrea Ca'Zorzi
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/