jim-jim-jim / base2

Automatically exported from code.google.com/p/base2
0 stars 0 forks source link

getComputedStyle doesn't work in IE #16

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Link base2 library and run following js code in IE(7 or 6) browser:

base2.DOM.bind(document);
base2.DOM.bind(window);

document.addEventListener("DOMContentLoaded", function() {
    alert("window.getComputedStyle: " + window.getComputedStyle);
    alert("document.defaultView: " + document.defaultView);
    if (document.defaultView) {
        alert("document.defaultView.getComputedStyle: " +
document.defaultView.getComputedStyle);
    }

}, false);

You can see it at http://mariuszn3.com/base2/getComputedStyle.html

I expect to see getComputedStyle as valid methods instead I see them as
"undefined"

I'm using last base2 version (Tue, 26 Jun 2007 15:37:27) on
Windows XP Professional 

You can see working example at http://mariuszn3.com/base2/getComputedStyle.html

Original issue reported on code.google.com by marius...@gmail.com on 3 Jul 2007 at 9:19

GoogleCodeExporter commented 9 years ago
The AbstractView interface is being applied to soon. Easy to fix.

Original comment by dean.edw...@gmail.com on 3 Jul 2007 at 4:17

GoogleCodeExporter commented 9 years ago
Fixed in trunk.

Original comment by dean.edw...@gmail.com on 3 Jul 2007 at 8:40

GoogleCodeExporter commented 9 years ago

Original comment by doek...@gmail.com on 14 Jul 2007 at 7:09