www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17511] New: [REG 2.075a] std.xml puts grand-children into items

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: nobody puremagic.com
          Reporter: ag0aep6g 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

--
Jun 15 2017