Ticket #583 (closed defect: fixed)
Tree doesn't work correctly with immediately closed <div> tags
| Reported by: | ramnivas@… | Owned by: | anonymous |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | General | Version: | 0.2 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
Try the following tree. Note the immediately closed <div> tags for one.1 and one.2
(I tried with the version in SVN repository as of March 28th, 2006.)
<div dojoType="Tree">
<div title="one" dojoType="TreeNode">
<div title="one.1" dojoType="TreeNode"/>
<div title="one.2" dojoType="TreeNode"/>
</div>
</div>
This shows an incorrect parent-child relationship:
> one
> one.1
> one.2
Instead of the expected:
> one
> one.1
> one.2
However, if I close the <div> tags separately
<div dojoType="Tree">
<div title="one" dojoType="TreeNode">
<div title="one.1" dojoType="TreeNode"></div>
<div title="one.2" dojoType="TreeNode"></div>
</div>
</div>
It works as expect. It looks like a parsing bug.
Change History
Note: See
TracTickets for help on using
tickets.