-
Notifications
You must be signed in to change notification settings - Fork 713
Fix camelCasing properties for IE ( see #93 ) #94
base: gh-pages
Are you sure you want to change the base?
Conversation
I’m afraid that won’t work either. IE supports some properties with Also, if we fix that issue, we better not make it IE specific, other browsers could eventually run into this. The way I’d fix it would be:
|
Makes a lot of sense :) |
OK, looks like it's even nastier than that. When trying to read the CSS of an element in jQuery, the property-name is de-camel-cased . As such, if the camel-cased property name uses the lowercase prefix it will be get de-camel-cased to a property name that does not begin with a hyphen. And from there, all hell breaks loose (as WebKit supports both variants - setting webkitPropertyName and reading WebkitPropertyName). |
OK, looks like if we favor uppercase prefixes, jQuery won't break. Not entirely sure how they cope with ms/Ms prefixes, but seems solid. Should be ready to merge :) |
Hi there, Thanks for your continued efforts on this. Some small remarks:
|
OK, I'll looks for the already created div and squash the commits into one and then come back :) |
Hopefully, this is it!
|
Hi, Sorry for the delay, I'm swamped these days. Some comments:
it's much simpler and shorter to just write
|
Inspired from jQuery's own camelCase() - in IE, properties get camelCased as 'msPropertyName', not 'MsPropertyName'