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 error outside localhost #637

Closed
jluiszg opened this issue May 8, 2012 · 3 comments
Closed

CSSStyleDeclaration error outside localhost #637

jluiszg opened this issue May 8, 2012 · 3 comments

Comments

@jluiszg
Copy link

jluiszg commented May 8, 2012

Hi there, I'm sorry about any mistakes in my english writing.

Well, i'm using d3.js to visualize some charts, but right now i'm facing a problem only in IE9 and only if I access through my server IP instead of mi localhost interface.

What i'm trying to say its that if I mount my page (hello-data & d3.v2.js) into an Apache web server and in my IE9 browser access the url http://localhost/hello-data.html it's allright, but if i use http://XXX.XXX.XXX.X/hello-data I get

Error: 'CSSStyleDeclaration' it's undefined

reading the issues i realized this is a common problem, and sometimes fixed with , but the whole week i tried to solve this with any luck so far.

I really, really appreciated if anyone could help me with this trouble

@mbostock
Copy link
Member

mbostock commented May 8, 2012

The only issue I'm aware of is forgetting <!DOCTYPE html> or accidentally putting IE into "compatibility view", either of which puts IE9 in quirks mode where everything is broken. This is discussed in this thread.

If you have further questions, please reply to the above thread or start a new thread in the d3-js discussion group, or post your question to stack overflow using the tag d3.js.

@mbostock mbostock closed this as completed May 8, 2012
@jasondavies
Copy link
Contributor

On some corporate intranets they have compatibility mode enabled by default, so you also need to add:

<meta http-equiv="X-UA-Compatible" content="IE=edge">

@jluiszg
Copy link
Author

jluiszg commented May 8, 2012

Thanks a lot!!, the answer from @jasondavies solves the problem, now i can get back to work.

BTW, great tool d3.js, i'm using it for my master degree thesis. It's a shame IE always make things go wrong

greetings!!

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

3 participants