Skip to content

Commit

Permalink
#97: Also check for attribute handlers through their lowercase name
Browse files Browse the repository at this point in the history
IE automatically lowercases all attribute names when doctype is HTML. This is a small bandaid to
fix setAttribute for fields like fieldOfView in IE until we normalize all attribute names to be lowercase.
  • Loading branch information
csvurt committed Feb 19, 2015
1 parent 514dd6c commit da9b3a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/interface/elements.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ function handleAttributeChanged(mutation) {
if (!elementHandler) {
return;
}
var attributeHandler = elementHandler.handlers[mutation.attributeName];
var attributeHandler = elementHandler.handlers[mutation.attributeName] || elementHandler.handlers[mutation.attributeName.toLowerCase()];
if (!attributeHandler) {
return;
}
Expand Down

0 comments on commit da9b3a6

Please sign in to comment.