Opened 7 years ago

Closed 7 years ago

#16359 closed defect (invalid)

ContentPane fails with maximum recursion error when adding subchild with "containerNode" attribute

Reported by: exi Owned by: bill
Priority: undecided Milestone: tbd
Component: Dijit Version: 1.8.1
Keywords: Cc:
Blocked By: Blocking:

Description (last modified by bill)

Hi, The ContentPane fails to reset the content if a first level child creates a second level child which has a "containerNode" attribute in it (not in the dom though).

Testcase appended.

Attachments (1)

test.html (1.3 KB) - added by exi 7 years ago.
testcase freezes firefox an causes max recursion error in chrome

Download all attachments as: .zip

Change History (2)

Changed 7 years ago by exi

Attachment: test.html added

testcase freezes firefox an causes max recursion error in chrome

comment:1 Changed 7 years ago by bill

Description: modified (diff)
Resolution: invalid
Status: newclosed

Thanks for the testcase, but it looks very strange. You are setting Inner.containerNode to a node outside of Inner.domNode, and worse yet, an ancestor of Inner.domNode.

this.containerNode must be a descendant of this.domNode. This is a requirement for all widgets.

Note: See TracTickets for help on using tickets.