Opened 15 years ago
Closed 14 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 15 years ago by
Milestone: | → 0.5 |
---|
comment:2 Changed 14 years ago by
Owner: | changed from anonymous to alex |
---|
comment:3 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |