jindw/xmldom — pull request #92 by kethinov (2014-05-14 07:26:32+00:00)
Title: Removing leading whitespace from text nodes

This behavior is more consistent with standard XML parsing as I understand it. (e.g. http://www.usingxml.com/Basics/XmlSpace)

Note: only removing the *leading* whitespace and not the trailing whitespace because web browser implementations of DOMParser preserve trailing whitespace.