https://github.com/dxw/assertions/blob/18a9beff8d9daa45c2729fd8d425ce0897bbb862/src/HTML.php#L16-L19 This is just wrong. We should be able to iterate through the DOM and when we encounter a text node we should remove all leading/trailing whitespace.
assertions/src/HTML.php
Lines 16 to 19 in 18a9bef
This is just wrong. We should be able to iterate through the DOM and when we encounter a text node we should remove all leading/trailing whitespace.