Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

set text property on style element fails on ie7/8 #2416

Closed
pstjvn opened this Issue Aug 27, 2012 · 1 comment

Comments

Projects
None yet
2 participants

pstjvn commented Aug 27, 2012

Tested on latest 1.4.5 (no compat)
When a style element is accessed to alter the text property, error is raised in IE 7 and IE 8:
Code to reproduce:

var style = new Element('style',{  id: 'mycustomstyle'  });
$$('head')[0].grab(style);
style.set('text', 'body {background-color: red;}');

IE7/8 allows modification of the style text node via styleSheet.cssText, but not directly inserting text node.

text code works in ie9/10, ff, chrome on windows and linux. breaks only in ie7/8 (probably in 6 as well, but i don't have one to test it).

Owner

arian commented Aug 27, 2012

Duplicate of #2265

@arian arian closed this Aug 27, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment