Opened 12 years ago
Closed 12 years ago
#10426 closed Bug (invalid)
bug reading style class, Reserved keyword IE8
Reported by: | Stephan | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | Core : Styles | Version: | 4.0 |
Keywords: | Cc: |
Description
I'm adjusting the styleComboBox plugins to my need. and i needed to read the class that will be set with the style object.
Because the class keyword is reserved in Internet Explorer 8 (only) This code will crash the editor and plugin.
style._.definition.attributes.class
A work arround:
style._.definition.attributes["class"]
It would be a good idea to change the name of the class property
I can't see any problem in using array-like getters. There are more reserved keywords in old browsers for which you would need to use this format. And how would you access properties like
attributes[ 'data-sth' ]
? Only this way.