Opened 14 years ago

Closed 13 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:

Description

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>

</fieldset>

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: http://article.gmane.org/gmane.comp.web.dojo.user/981

Change History (3)

comment:1 Changed 13 years ago by dylan

Milestone: 0.5

comment:2 Changed 13 years ago by dylan

Owner: changed from anonymous to alex

comment:3 Changed 13 years ago by bill

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