mootools/mootools-core — Issue #2265: new Element('style', {text: ''}) throws IE exception
Author: ibolmo
Created: 2012-01-30 05:53:45+00:00
State: open

Here's the fix: https://github.com/mootools/mootools-core/pull/2263/files#L1R21

(and btw, we need to update those lines once we're done)

IE doesn't like innerHTMl or innerText for stylesheet definitions. Instead we need to use `styleSheet.cssText` to set the text.