Bug 17511 – [REG 2.075a] std.xml puts grand-children into items

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2017-06-15T19:07:37Z
Last change time
2018-01-05T13:29:21Z
Keywords
pull
Assigned to
No Owner
Creator
ag0aep6g

Comments

Comment #0 by ag0aep6g — 2017-06-15T19:07:37Z
---- 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
Comment #1 by github-bugzilla — 2017-06-15T20:20:40Z
Comment #2 by github-bugzilla — 2017-06-17T11:35:13Z
Comment #3 by github-bugzilla — 2018-01-05T13:29:21Z