Opened 10 years ago

Last modified 8 years ago

#12384 closed defect

IE8 keeps throwing 'nodeType' is not null error — at Version 2

Reported by: somik Owned by: Eugene Lazutkin
Priority: high Milestone: future
Component: DojoX GFX Version: 1.6.0rc1
Keywords: Cc:
Blocked By: Blocking:

Description (last modified by Eugene Lazutkin)

I am building an open source decision system that involves the use of the dojo toolkit to draw a pie chart. It can be accessed at:

To see the problem in action, follow these steps, in IE8:

  1. Go to the Assessment Tab
  2. Click on Minor Injuries Given Success

That should throw the following error:

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; MS-RTC LM 8; MALC)
Timestamp: Sat, 5 Mar 2011 00:55:00 UTC

Message: 'nodeType' is null or not an object
Line: 14
Char: 54035
Code: 0

I've tried for quite some time to debug this, but have been unable to. It works just fine on Chrome and Firefox.

As a test, here is a standalone assessment tool with the pie chart that works just fine on all browsers:

Its just that when it is integrated with the entire decision system that this problem comes up in IE.

Any suggestions on what might be happening to cause this error would be greatly appreciated. Thank you so much.

Change History (2)

comment:1 Changed 10 years ago by somik

Additional information that may help - the code that calls dojo is in probabilitywheel.js, within the function "drawPieGraph." Surprisingly, when this is called by itself (Assessments -> Success), it works fine. When it is called in the context of multiple assessments (from pluginAssessor.js - see createGUI), it crashes in IE8.

comment:2 Changed 10 years ago by Eugene Lazutkin

Description: modified (diff)
Milestone: tbdfuture
Status: newassigned

First of all, are you sure that browser has finished creating DOM before you try to do any graphic operations?

Note: See TracTickets for help on using tickets.