#19038template->startPage returns invalid XHTML
Description
The doctype header of template->docType=‘xhtml_trans’ does not produce valid xhtml markup in template->startPage().
template->docType=“xhtml_trans“
template->startPage(‘foo’);
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?xml version="1.0" encoding="utf-8"?>
<html><br>…..</html>
W3 validator returns:
Line 7, Column 1: Missing xmlns attribute for element html. The value should be: http://www.w3.org/1999/xhtml
<html><br>Many Document Types based on XML need a mandatory xmlns=”“ on the root element. For example, the root element for XHTML will look like:<br><html xml:lang="en" lang="en"></html></html>
Line 4, Column 5: XML Parsing Error: XML declaration allowed only at the start of the document .
<?xml version="1.0" encoding="utf-8"?>
(issue imported from #M8861)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.