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

Closed
jvhouten opened this issue Mar 23, 2012 · 5 comments
Closed

CSSStyleDeclaration undefined in IE9 (Chords) #599

jvhouten opened this issue Mar 23, 2012 · 5 comments

Comments

@jvhouten
Copy link

@jvhouten jvhouten commented Mar 23, 2012

Dear,

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: http://resourceatlas.tudelft.nl/tools/chords.html

Thanks in advance,
Jeroen

The error message:
Message: 'CSSStyleDeclaration' is undefined
Line: 7
Char: 3
Code: 0
URI: http://resourceatlas.tudelft.nl/css/chord_diagram/d3.v2.js

@mbostock
Copy link
Member

@mbostock mbostock commented Mar 23, 2012

You are missing the HTML5 DOCTYPE:

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

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

I still get this issue even though I have the

@mbostock
Copy link
Member

@mbostock mbostock commented Aug 10, 2012

@praveenaki
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.

@conradbm
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
Labels
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
5 participants