[Issue 17511] New: [REG 2.075a] std.xml puts grand-children into items
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Thu Jun 15 12:07:37 PDT 2017
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 at puremagic.com
Reporter: ag0aep6g at 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
--
More information about the Digitalmars-d-bugs
mailing list