Generated HTML output for taxonomies has changed

I’ve just run a diff across the output for a zola build version 10.1 and version 11.0.

The generated output for taxonomy pages has changed to be invalid html output.

Version 10.1

<!DOCTYPE html>
        <link rel="canonical" href="" />
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <meta http-equiv="refresh" content="0;url=" />
        <p><a href="">Click here</a> to be redirected.</p>

Generating the same site with Version 11

<!doctype html>
<meta charset="utf-8">
<link rel="canonical" href="">
<meta http-equiv="refresh" content="0;url=">
<p><a href="">Click here</a> to be redirected.</p>

Note the html body and head tags are missing.

The new version is valid HTML according to a few sites. The only thing they complain about is the missing space after 0;

OK if it’s technically valid, did it need to change?

Just to make the output a few bytes faster since it’s to redirect and hopefully doesn’t get seen at all.

Did also see that and it works fine with the browsers i tested (Firefox, Safari and Chrome).

Yes it seems fine on Desktop browsers, but Mobile browsers are more picky and you have older versions in the wild especially on older phones. It’s difficult to check all cases so cutting a few bytes is not worth the potential downside.