I have a select
element with few custom attributes that I use to validate it on the fly and display appropriate messages. Attribute's name is camel cased as in
<select validationMessage="Must select something" ... >...
The problem is that in jQuery version older than 1.6 .attr()
seems to be case sensitive. What's even more problematic, that it won't fetch originally cased attributes. This works the same in Firefox in Chrome, but works as expected (case insensitive as it should be) in Internet Explorer. It's also interesting that any casing (except original one) works.
Here's a JSFiddle example of this issue. You can change jQuery lib version on the left and hit "Run" to check how it works with other versions.
How am I about to mitigate this issue?