diff options
author | Christian Schneider | 2007-10-11 03:18:56 +0000 |
---|---|---|
committer | Christian Schneider | 2007-10-11 03:18:56 +0000 |
commit | 790586e44ce73838485544549dda4042e144f80a (patch) | |
tree | b55ca4b891ea33dc0d157b14155fb1b0174bf837 /it_html.class | |
parent | 6f5bc905419df0be868560f04a4be7086592991b (diff) | |
download | itools-790586e44ce73838485544549dda4042e144f80a.tar.gz itools-790586e44ce73838485544549dda4042e144f80a.tar.bz2 itools-790586e44ce73838485544549dda4042e144f80a.zip |
Make validator.w3.org happy about xhtml pages
Diffstat (limited to 'it_html.class')
-rw-r--r-- | it_html.class | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/it_html.class b/it_html.class index 4c5be62..4f1e837 100644 --- a/it_html.class +++ b/it_html.class @@ -122,7 +122,7 @@ function html($args) $p += $this->p; $html = ($p['doctype'] ? $p['doctype'] : $this->doctypes[$p['htmltype']]) . "\n" . - '<html ' . ($p['htmltype'] == "xhtml-mobile" ? 'xml:lang' : 'lang') . "=\"{$p['lang']}\">\n" . $data . ($p['omit_endhtml'] ? '' : "</html>\n"); + '<html ' . ($p['htmltype'] == "xhtml" ? 'xmlns="http://www.w3.org/1999/xhtml" ' : '') . ($p['htmltype'] == "xhtml-mobile" ? 'xml:lang' : 'lang') . "=\"{$p['lang']}\">\n" . $data . ($p['omit_endhtml'] ? '' : "</html>\n"); return EDC('re') ? it::replace(array('<!DOCTYPE.*<head>' => ''), $html, array('singleline' => true)) : $html; } |