PDA

View Full Version : [OPEN-474][3.1] CSS.cacheStyleSheet bug



bmatasar
24 Jan 2010, 11:38 AM
Hello!

there is a problem with the code in the Ext.util.CSS.cacheStyleSheet: @import declarations are not handled properly. Should such a declaration occur, there is no selectorText attribute, so an exception is thrown and the rest of the declarations are skipped.

Regards,
B.

jay@moduscreate.com
24 Jan 2010, 12:55 PM
welcome to the forums.

What version of the framework are you on? We have specific forums for each version for bugs, etc.

Thanks for the feedback.

bmatasar
24 Jan 2010, 1:00 PM
I am moving to 3.1.0 and I have noticed the entries in the firebug.
A simple test for the presence of the selectorText will make them go away.

To see the problem, just include a simple file content1.css like

content1.css
@import url(content2.css)

content2.css
body { margin: 0px auto }

Thanks
B

jay@moduscreate.com
24 Jan 2010, 1:04 PM
Thanks. Moved to bugs ;)