diff --git a/html/html.go b/html/html.go
index <HASH>..<HASH> 100644
--- a/html/html.go
+++ b/html/html.go
@@ -99,7 +99,9 @@ func Minify(m minify.Minifier, _ string, w io.Writer, r io.Reader) error {
 				if !nonPhrasingTagMap[rawTag] && rawTag != html.Script {
 					omitSpace = len(t.Data) > 0 && t.Data[len(t.Data)-1] == ' '
 				}
-			} else if t.Data = parse.ReplaceMultiple(t.Data, parse.IsWhitespace, ' '); len(t.Data) > 0 {
+			} else {
+				t.Data = parse.ReplaceMultiple(t.Data, parse.IsWhitespace, ' ')
+
 				// whitespace removal; trim left
 				if omitSpace && t.Data[0] == ' ' {
 					t.Data = t.Data[1:]
t.Data always has length, else it's not a text node