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

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

You are missing the HTML5 DOCTYPE:

<!DOCTYPE html>

@christinam-cx
Copy link

I still get this issue even though I have the

@mbostock
Copy link
Member

See #660 (comment)

@praveenaki
Copy link

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

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
Development

No branches or pull requests

5 participants