Forum Bugs

Quirks mode/KaTex

I tried

with PrinceXML 11 but the error message about quirks mode is completely wrong since the HTML below should not be treated as HTML in quirks mode:

prince --javascript test.html
prince: warning: Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype.
prince: error: ParseError: KaTeX parse error: KaTeX doesn't work in quirks mode.

<!DOCTYPE html>
<link rel="stylesheet" href="" integrity="sha384-TEMocfGvRuD1rIAacqrknm5BQZ7W7uWitoih+jMNFXQIbNl16bO8OZmylH/Vi/Ei" crossorigin="anonymous">
<script src="" integrity="sha384-jmxIlussZWB7qCuB+PgKG1uLjjxbVVIayPJwi6cG6Zb4YKq0JIw+OMnkkEC7kYCq" crossorigin="anonymous"></script>

<div id="element">

<script type="text/javascript">
var el = document.getElementById("element");
katex.render("c = \\pm\\sqrt{a^2 + b^2}", el);

This issue appears to already be fixed in latest builds.
Using the latest builds works...but it produces improper output...
  1. Screenshot 2018-05-15 06.30.12.png23.3 kB
Progress! That is a little wide, though. :D