Uploaded image for project: 'Axiom'
  1. Axiom
  2. AXIOM-411

addChild doesn't work as expected when invoked on a element that is already the parent of the node to be added

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.2.12
    • 1.2.13
    • DOOM, LLOM
    • None

    Description

      When addChild is use to add a node to an element that is already the parent of that node, the expected result is that the node is moved to the end of the list of children of the element. However, this doesn't work (with LLOM; DOOM has not been tested). There are two cases:

      1. The element is completely built. In that case, the children after the node are removed. This issue was first described in [1].
      2. The element is not complete and the node is the last child that was instantiated. In that case, the addChild method is a no-op.

      [1] http://mail-archives.apache.org/mod_mbox/ws-dev/201202.mbox/%3CCADg9GQZyX3dUFf%2BG0ED08hjsuxVMrTYViJ0ZE5uAjWCZEhr2fA%40mail.gmail.com%3E

      Attachments

        Activity

          People

            veithen Andreas Veithen
            veithen Andreas Veithen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: