Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


pyjamas sites fail with addEventListener error in IE 9 #16

pyjsorg opened this Issue · 2 comments

1 participant


I'm a pyjamas noob so apologies in advance if I'm posting in the wrong place. Using Internet Explorer 9 ( on Windows 7, I get an error when navigating to the pyjamas sites referenced at

index TypeError: Object doesn't support property of method 'addEventListener'

I'm reporting here because

  • sites that fail: everything under
  • these are other people's sites, not my code
  • the sites display properly using firefox and chrome
  • the sites are completely blank on IE 9
  • tried on 2 different windoze machines with same result
  • deleting browser history doesn't help
  • itself displays properly

The generated source I see for

<!-- auto-generated html - you should consider editing and
adapting this to suit your requirements
<meta name="pygwt:module" content="Space">

<title>PyJamas Space Game</title>
<body bgcolor="white">
<script language="javascript" src="bootstrap.js"></script>
<iframe id='__pygwt_historyFrame' style='width:0;height:0;border:0'></iframe>

<!-- Start of StatCounter Code -->
<script type="text/javascript" language="javascript">
var sc_project=2659074;
var sc_invisible=1;
var sc_partition=26;
var sc_security="53230453";

<script type="text/javascript" language="javascript" src=";&gt;&lt;/script&gt;&lt;noscript&gt;&lt;a href="" target="_blank"><img src=";java=0&amp;security=53230453&amp;invisible=0" alt="free hit counter" border="0"></a> </noscript>
<!-- End of StatCounter Code -->


Original issue: (April 01, 2012 21:46:26)


From on April 03, 2012 23:01:31:
ok can you please recompile (for yourself) and test (locally) - not everyone has IE9. i have only IE7 for example.




From on April 28, 2012 13:52:13:
pyjs is apparently balking at something unavailable in IE9 quirks mode. pyjs is catching the error and putting up an alert, so that's as far as I can get. I do not get this alert (hello example works fine) from the web site in IE9 Standards Mode. If I run locally, pyjscompiling with pyjamas-0.8alpha1, hello example works fine in both quirks mode and IE9 Standards mode.

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.