Opened 11 years ago

Closed 9 years ago

#12384 closed defect (invalid)

IE8 keeps throwing 'nodeType' is not null error

Reported by: somik Owned by: somik
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 (5)

comment:1 Changed 11 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 11 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?

comment:3 Changed 11 years ago by somik

How do I make sure?

comment:4 Changed 9 years ago by cjolif

Owner: changed from Eugene Lazutkin to somik
Status: assignedpending

Are you waiting for dojo/ready or dojo/domReady?

comment:5 Changed 9 years ago by trac-o-bot

Resolution: invalid
Status: pendingclosed

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!

Note: See TracTickets for help on using tickets.