Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Doesn't work in Internet Explorer [All versions] #7

Closed
krisrogers opened this Issue · 6 comments

2 participants

@krisrogers

As far as I can tell IE9+ should support the features needed to layout the word cloud. Unfortunately though it does not work out of the gates.

I have spent some time trying to figure out why, but haven't managed to get it working properly. The problem seems to be related to the getImageData method on the canvas. My tests revealed that in IE9 it was consistently returning all zero values even after the fillText method had been called.

Any ideas?

@jasondavies jasondavies closed this issue from a commit
@jasondavies Add DOCTYPE for IE9.
This is required to ensure IE9 runs in "standards mode".

Fixes #7.
8803b7f
@jasondavies
Owner

You should make sure IE9 is running in standards mode, e.g. by setting a DOCTYPE. I’ve fixed the example so it does this, and I’ve tested this in IE9.

@krisrogers

This doesn't seem to fix the problem for me. Have you tried the Twitter example at www.jasondavies.com/wordcloud/ in IE9? The docset declaration is there and IE9 defaults to standards mode but only a single word appears.

@jasondavies
Owner

Yes, and it worked okay for me. What is the exact version of IE9 that you’re testing, and OS? I saw references to a bug limiting the number of pixels for getImageData to 8192 in IE9, so perhaps this is affecting it.

@krisrogers

Turns out that it only doesn't work when running Windows 7 with Parallels. When booting directly into Windows it works fine. Weird.

@jasondavies
Owner

Perhaps it’s an outdated version of IE9 with the getImageData bug?

@krisrogers

It is a single installation of Windows 7 + IE9 that works fine natively but is broken when virtualised. Possibly some strange anomaly in Win API when virtualised. I am just going to ignore it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.