Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Enhance getComputedStyle() for MSIE #35

Closed
GoogleCodeExporter opened this issue Aug 19, 2015 · 6 comments
Closed

Enhance getComputedStyle() for MSIE #35

GoogleCodeExporter opened this issue Aug 19, 2015 · 6 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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

  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect

@GoogleCodeExporter
Copy link
Author

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

  • Changed state: Started

@GoogleCodeExporter
Copy link
Author

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

  • Changed state: Fixed

@GoogleCodeExporter
Copy link
Author

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
Copy link
Author

> 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

  • Changed state: Re-open

@GoogleCodeExporter
Copy link
Author

getPropertyValue() is now implemented.

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

  • Changed state: Fixed

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant