xcatliu / react-ie8

Make your React app work in IE8
http://react-ie8.xcatliu.com/
998 stars 162 forks source link

IE8,firstChild.data.length undefind #28

Closed LincWong closed 8 years ago

LincWong commented 8 years ago

in IE8, this will be error. `

4444

    </div>
    <script></script>
    <script type="text/javascript">
        var a = document.getElementById("etDiv");
        var b = a.firstChild;
        alert(b.data.length);
    </script>`

because b.data is undefined in IE8

xcatliu commented 8 years ago

You are right, b don't have an attribute 'data'. But this is not the issue about react.

Thank you all the time!