https://issues.dlang.org/show_bug.cgi?id=17511

          Issue ID: 17511
           Summary: [REG 2.075a] std.xml puts grand-children into items
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Keywords: pull
          Severity: regression
          Priority: P1
         Component: phobos
          Assignee: nob...@puremagic.com
          Reporter: ag0ae...@gmail.com

----
import std.xml;

void main()
{
    auto doc = new Document("<root><child><grandchild/></child></root>");
    assert(doc.elements.length == 1);
    assert(doc.elements[0].tag.name == "child");
    assert(doc.items == doc.elements);
}
----

Introduced by <https://github.com/dlang/phobos/pull/5380>.
Pull request reverting the bad commit and adding a test:
https://github.com/dlang/phobos/pull/5489

--

Reply via email to