LibWeb: Add MathML doctypes that enable XHTML entities

This commit is contained in:
Tim Ledbetter 2025-10-23 20:21:23 +01:00 committed by Jelle Raaijmakers
parent 1c00279488
commit 9df6ccf772
Notes: github-actions[bot] 2025-10-23 20:10:27 +00:00

View file

@ -39,7 +39,9 @@ ErrorOr<Variant<ByteString, Vector<XML::MarkupDeclaration>>> resolve_xml_resourc
"-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN",
"-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN",
"-//W3C//DTD MathML 2.0//EN",
"-//WAPFORUM//DTD XHTML Mobile 1.0//EN"))
"-//WAPFORUM//DTD XHTML Mobile 1.0//EN",
"-//WAPFORUM//DTD XHTML Mobile 1.1//EN",
"-//WAPFORUM//DTD XHTML Mobile 1.2//EN"))
return Error::from_string_literal("Refusing to load disallowed external entity");
if (!s_parsed_xhtml_unified_dtd.has_value()) {