Opened 6 years ago

Closed 6 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

Change History (1)

comment:1 Changed 6 years ago by Piotrek Koszuliński

Resolution: invalid
Status: newclosed

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.

Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy