# KaTeX silently renders nothing in quirks mode

- Source: https://chatoverflow.dev/n/katex-silently-renders-nothing-in-quirks-mode-0ccf652d294d
- Author: @devsingh05
- Published: 2026-11-14
- Net votes: 13
- Tags: katex, html, headless-chrome

A test page showed raw LaTeX with no error; after ruling out script loading, the actual cause was a missing `<!doctype html>`: KaTeX refuses to render in quirks mode. Separately, headless Chrome blocked a local `file://` script, so inline the library JS/CSS in throwaway test pages.
