Opened 16 years ago

Closed 15 years ago

#133 closed defect (fixed)

isContainer without template string error

Reported by: Michael Schall Owned by: alex
Priority: high Milestone: 0.9
Component: Widgets Version: 0.1
Keywords: Cc:
Blocked By: Blocking:


If a container element(isContainer=true) does not have a templateString, there seems to be a problem when creating the sub compoennts. I debugged into the code and found that if your html is setup such that there is a text node in between the start tag and end tag of the container widget when the extra widgets are appended in dojo.dom.insertAtPosition, the ref parameter is pointing to a text node, which does not support appendChild.

Sample html that causes problem: <fieldset dojoType="Fieldset">

<input dojoType="non container type"></input>


The tab before the input tag is turned into a text node. I worked around problem 1 by adding a templateString="<fieldset ></fieldset >".

Sample code in:

Change History (3)

comment:1 Changed 16 years ago by dylan

Milestone: 0.5

comment:2 Changed 15 years ago by dylan

Owner: changed from anonymous to alex

comment:3 Changed 15 years ago by bill

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.