Fixes a bug when https://wpt.live/css/CSS2/positioning/abspos-001.xht saved as file fails because we incorrectly recognized its MIME type as HTML, leading to incorrect self-closing tag handling and thus incorrect rendering.