IE8: styleNode.setContent(cssText) causes "Unexpected call to method or property access" #1968

Open
d-adamkiewicz opened this Issue Oct 6, 2014 · 1 comment

Projects

None yet

2 participants

@d-adamkiewicz
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8" />
        <script src="http://yui.yahooapis.com/3.18.0/build/yui/yui-min.js"></script>
        <style type="text/css" id="content-css">
        </style>
    </head>
    <body>
        <div id="content">Hello</div>
        <script>
            YUI().use('node', function(Y) {
                Y.one("#content-css").setContent('#content{color: red;}');
            });
        </script>
    </body>
</html>
@okuryu
Member
okuryu commented Oct 8, 2014

Thanks. I have been reproduced this issue on IE 8. It seems not to occurs on IE 9.

http://jsbin.com/kotaco/1/

@okuryu okuryu added the bug label Oct 8, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment