Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-5119

Node.depthFirst() 'forgets' text nodes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.8.3
    • 2.0-beta-3, 1.8.7
    • XML Processing
    • None
    • (any)

    Description

      Node.depthFirst() is expected to recursively include all Node.children() elements. The attached program demonstrates a counter example, where Node.depthFirst() 'forgets' all 3 text chldren resulting in a list of 4 instead of 7 elements.

      The correct semantics of "Node.depthFirst()" is defined by "depthFirst( node )" in the attached program.

      Attachments

        1. Bug.groovy
          0.9 kB
          zroh

        Activity

          People

            paulk Paul King
            zroh zroh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: