Implement legacy behavior of `ignoreWhitespace`

HtmlParser2 has modified the behavior of the `ignoreWhitespace` option.
So it must be simulated via an immediate traversal through newly-created
DOM structures.