runtime icon indicating copy to clipboard operation
runtime copied to clipboard

Reevaluate a design decision - XDocument automatically connects text nodes next to each other

Open sepidehkh opened this issue 11 years ago • 3 comments

XDocument automatically connects text nodes which are next to each other, and combines them in a single node. The expected behavior is to have a separate node for each.

sepidehkh avatar Oct 22 '15 00:10 sepidehkh

@krwq

This sounds like something we'd have a very hard time changing, given that we need to remain compatible with older code.

mellinoe avatar Oct 22 '15 00:10 mellinoe

I would expect the behaviour to be for adjacent text nodes to be combined into a single node, unless an added node was empty in which case the existing text node would remain unchanged (rather than replaced with a new identical node), as that's the requirement of the XQuery and XPath Data Model.

JonHanna avatar Oct 22 '15 01:10 JonHanna

Won't fix due to compatibility.

karelz avatar Oct 10 '16 22:10 karelz