From c3ad329888d39aefcebc9d272f021e5ae48bd661 Mon Sep 17 00:00:00 2001 From: Regis Houssin <regis@dolibarr.fr> Date: Sun, 20 Mar 2011 11:05:16 +0000 Subject: [PATCH] For test html5 compatibility --- htdocs/core/tpl/login.tpl.php | 1 + htdocs/main.inc.php | 1 + 2 files changed, 2 insertions(+) diff --git a/htdocs/core/tpl/login.tpl.php b/htdocs/core/tpl/login.tpl.php index 6407ac12ed1..6e8cb9159de 100644 --- a/htdocs/core/tpl/login.tpl.php +++ b/htdocs/core/tpl/login.tpl.php @@ -24,6 +24,7 @@ header("Content-type: text/html; charset=".$conf->file->character_set_client); <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <!-- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> --> <!-- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> --> +<!-- <!DOCTYPE html> --> <!-- Ce DTD est KO car inhibe document.body.scrollTop --> <!-- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> --> diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index 8c1ddc5f2f8..d19ff014580 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -832,6 +832,7 @@ function top_htmlhead($head, $title='', $disablejs=0, $disablehead=0, $arrayofjs //print '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/strict.dtd">'; //print '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'; //print '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">'; + //print '<!DOCTYPE html>'; print "\n"; print "<html>\n"; //print '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">'."\n"; -- GitLab