We currently include purely syntactic whitespace in the DOM, which makes life for VE and other clients harder than necessary. Instead, we should abstract purely syntactic whitespace and match the PHP parser's output.
Test cases:
Foo
should parse to <h2>Foo</h2> instead of <h2> Foo </h2>
- foo
should parse to <ul><li>foo</li></ul> instead of <ul><li> foo</li></ul>
Version: unspecified
Severity: normal