Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSSStyleDeclaration undefined in IE9 (Chords) #599

jvhouten opened this issue Mar 23, 2012 · 5 comments

CSSStyleDeclaration undefined in IE9 (Chords) #599

jvhouten opened this issue Mar 23, 2012 · 5 comments


Copy link

@jvhouten jvhouten commented Mar 23, 2012


For a project for my Master in Industrial Ecology I made use of d3 to create chord diagrams. It works perfectly fine in all browsers exept IE9. In IE10 it does work. Reading through the issues it seems as if it should have been resolved and since I am not a programmer I do not know how to solve this. Could you be able to help?

The website were it is embedded is:

Thanks in advance,

The error message:
Message: 'CSSStyleDeclaration' is undefined
Line: 7
Char: 3
Code: 0

Copy link

@mbostock mbostock commented Mar 23, 2012

You are missing the HTML5 DOCTYPE:

<!DOCTYPE html>
@mbostock mbostock closed this Mar 23, 2012
Copy link

@christinam-cx christinam-cx commented Aug 10, 2012

I still get this issue even though I have the

Copy link

@mbostock mbostock commented Aug 10, 2012

Copy link

@praveenaki praveenaki commented Jan 14, 2014

If anyone is still facing the problem here is the solution:

Add this 2 lines to your html file.

?meta http-equiv="X-UA-Compatible" content="IE=edge" /?

Replace ? with < and >. Because github is removing the line so i have to edit it.

If not IE doesn't understand the property CSSStyleDeclaration in your d3.js file.

Copy link

@conradbm conradbm commented Sep 14, 2017

Thank you, this solution worked!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
5 participants