You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The reason will be displayed to describe this comment to others. Learn more.
This is because if you use 'readOnly' for example it will use setAttribute, and if you use 'readonly' it uses element.readOnly = ''.
If the toLowerCase() function is used they both (camelCased and lowercased) will work the same (element.property = '').
readOnly is the same case as defaultValue, you would have to add it to this attributes object... (if toLowerCase is not there).
Still doing some tests here, will commit soon... (ill test all the camel cased properties on all major browsers on the set and get property method).
5867844
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Anutron, thats why i've put that toLowerCase() on the set/get/remove property.
using
setProperty('defaultvalue', 123)
will work ok, but
setProperty('defaultValue', 123)
Wont work... that is the same case as some other properties... ill make some test cases here to analyze this.
5867844
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is because if you use 'readOnly' for example it will use setAttribute, and if you use 'readonly' it uses element.readOnly = ''.
If the toLowerCase() function is used they both (camelCased and lowercased) will work the same (element.property = '').
readOnly is the same case as defaultValue, you would have to add it to this attributes object... (if toLowerCase is not there).
Still doing some tests here, will commit soon... (ill test all the camel cased properties on all major browsers on the set and get property method).