jim-jim-jim / base2

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

Enhance getComputedStyle() for MSIE #35

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Currently, the getComputedStyle() solution for MSIE simply returns an
element's currentStyle property. This property is not identical to
getComputedStyle() and needs a number of fixed to make it more compatible.

Original issue reported on code.google.com by dean.edw...@gmail.com on 23 Jul 2007 at 9:20

GoogleCodeExporter commented 9 years ago

Original comment by dean.edw...@gmail.com on 10 Aug 2007 at 4:12

GoogleCodeExporter commented 9 years ago
I can convert colours and metrics (width, height etc) to rgb and px 
respectively for
MSIE6/7. What else need fixing?

Original comment by dean.edw...@gmail.com on 10 Aug 2007 at 5:53

GoogleCodeExporter commented 9 years ago
Latest changes checked in. Will wait for furthe issues to be raised.

Original comment by dean.edw...@gmail.com on 10 Aug 2007 at 9:53

GoogleCodeExporter commented 9 years ago
I'm a bit confused regarding the implementation of getComputedStyle() for IE.

In firefox, to get the style property of an element, you'd use:
  document.defaultView.getComputedStyle(element, "").getPropertyValue(styleName);
But that doesn't work in IE, getPropertyValue is undefined.

What works in both cases is:
  document.defaultView.getComputedStyle(element, "")['styleName'];

Shouldn't getPropertyValue be implemented?

Original comment by cedric.s...@gmail.com on 5 Oct 2007 at 7:37

GoogleCodeExporter commented 9 years ago
> Shouldn't getPropertyValue be implemented?

It will be in the next release.

Original comment by dean.edw...@gmail.com on 7 Oct 2007 at 2:40

GoogleCodeExporter commented 9 years ago
getPropertyValue() is now implemented.

Original comment by dean.edw...@gmail.com on 5 Dec 2007 at 4:45