This means "foo bar baz" now reads "foobarbaz" on screen. This is not equivalent and therefore invalid.
Footnote
It may be worth noting this is not even consistent, depending on other markup that may be used within the p element. For example:
<p>Foo <br> bar <em>baz</em> bat.</p>
Becomes:
<p>Foo<br> bar <em>baz</em>bat.</p>
This means "foo bar baz bat" now reads "foo bar bazbat" on screen. That is, insertion of the <br> element causes some whitespace to be preserved that otherwise, due to this bug, would not be.
Given the following code:
By default the minifier outputs:
This means "foo bar baz" now reads "foobarbaz" on screen. This is not equivalent and therefore invalid.
Footnote
It may be worth noting this is not even consistent, depending on other markup that may be used within the p element. For example:
Becomes:
This means "foo bar baz bat" now reads "foo bar bazbat" on screen. That is, insertion of the
<br>
element causes some whitespace to be preserved that otherwise, due to this bug, would not be.