<h1> I am a title with <i> something italic </i> and <a href=https://example.com> a link </a> ! </h1>
<p>
I am a paragraph with
<b>
something bold
</b>
and
<a href=https://example.com>
a link
</a>
!
</p>
Both Chromium and Firefox rendered it like this
minify-html minified it like this
<h1>I am a title with <i> something italic </i> and <a href=https://example.com> a link </a> !</h1><p>I am a paragraph with <b> something bold </b> and <a href=https://example.com> a link </a> !
However, the most minimized HTML should be
-<h1>I am a title with <i> something italic </i> and <a href=https://example.com> a link </a> !</h1><p>I am a paragraph with <b> something bold </b> and <a href=https://example.com> a link </a> !
+<h1>I am a title with <i>something italic </i>and <a href=https://example.com>a link </a>!</h1><p>I am a paragraph with <b>something bold </b>and <a href=https://example.com>a link </a>!
4. If 'white-space' is set to 'normal', 'nowrap', or 'pre-line',
2. any space (U+0020) following another space (U+0020) — even a
space before the inline, if that space also has 'white-space'
set to 'normal', 'nowrap' or 'pre-line' — is removed.
FYI
Python 3.9.12 (main, Mar 24 2022, 13:02:21) [GCC 11.2.0] on linux
minify-html 0.8.0
Input
Both Chromium and Firefox rendered it like this
minify-html minified it like this
However, the most minimized HTML should be
We can verify that they are exactly the same
Ref
https://www.w3.org/TR/CSS2/text.html#white-space-prop
FYI
Python 3.9.12 (main, Mar 24 2022, 13:02:21) [GCC 11.2.0] on linux minify-html 0.8.0