Closed Bug 151986 Opened 22 years ago Closed 20 years ago

id attribute for <treecol> required

Categories

(Core :: XUL, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: BenB, Assigned: janv)

References

Details

Attachments

(1 file)

556 bytes, application/vnd.mozilla.xul+xml
Details
Reproduction:
  <tree flex="1">
          <treechildren>
            <treeitem>
              <treerow>
                <treecell label="bar" />
                <treecell label="foo" />
                <treecell label="baz" />
                <treecell label="foo2" />
              </treerow>
            </treeitem>
            <treeitem>
              <treerow>
                <treecell label="bar2" />
                <treecell label="foo2" />
                <treecell label="baz2" />
                <treecell label="foo4" />
              </treerow>
            </treeitem>
          </treechildren>

    <treecols>
      <treecol label="a     " />
      <treecol label="b     " />
      <treecol label="c     " />
      <treecol label="d     " />
    </treecols>

  </tree>

Actual result:
bar   bar   bar   bar
bar2  bar2  bar2  bar2

Expected result:
bar   foo   baz   foo2
bar2  foo2  baz2  foo4

Additional Comments:
If you add unique id attributes to each <treecol>, it works. I don't think this
is documented anywhere (docs? hah!) nor do I think that this restirction makes
sense. -> bug
Depends on: 121568
OS: Linux → All
Hardware: PC → All
Attached file testcase
This is pretty painful as selection and collapsing a nested tree is broken.
Dup of 121568?
Blocks: 221619
Fixed along with bug 221619.
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee: hewitt → varga
Status: REOPENED → NEW
.
Status: NEW → RESOLVED
Closed: 20 years ago20 years ago
Resolution: --- → FIXED
Component: XP Toolkit/Widgets: Trees → XUL
QA Contact: shrir → xptoolkit.widgets
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: