pen icon indicating copy to clipboard operation
pen copied to clipboard

classList is not support by IE < 10

Open wilsoncook opened this issue 9 years ago • 0 comments

line 432:

    // set default class
    editor.classList.add(defaults.class);

the attribute classList is not exist under IE < 10, actually it's not necessary to use this attribute, instead there are more convenient methods to browser compatibility, for example className, also see https://developer.mozilla.org/en-US/docs/Web/API/Element/classList

don't know why use classList, not aiming to support IE < 10 from the first thought?

wilsoncook avatar May 13 '15 04:05 wilsoncook