]> git.lyx.org Git - features.git/commitdiff
Revert "XHTML: remove DOCTYPE, as the document is then understood as HTML4/XHTML1...
authorThibaut Cuvelier <tcuvelier@lyx.org>
Sat, 19 Sep 2020 23:35:14 +0000 (01:35 +0200)
committerThibaut Cuvelier <tcuvelier@lyx.org>
Sat, 19 Sep 2020 23:35:14 +0000 (01:35 +0200)
This reverts commit c8e2c17a: this makes some browsers unable to understand basic HTML entities.

src/Buffer.cpp

index 0cf87defb775f25711eb6002c01496a4bc13824d..2ef57687712da88e5871325f721f4c57e0063968 100644 (file)
@@ -2217,7 +2217,7 @@ Buffer::ExportStatus Buffer::writeLyXHTMLSource(odocstream & os,
 
        if (output_preamble) {
                os << "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
-                  << "<!DOCTYPE html>\n"
+                  << "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN\" \"http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd\">\n"
                   // FIXME Language should be set properly.
                   << "<html xmlns=\"http://www.w3.org/1999/xhtml\">\n"
                   << "<head>\n"