Edit report at http://pear.php.net/bugs/bug.php?id=16570&edit=1
ID: 16570
Updated by: ken@linux.ie
Reported By: sam at archives dot org dot au
Summary: Doctype System Identifier should be 'w3' not 'w3c'.
Status: Verified
Type: Bug
Package: HTML_Page2
Operating System: Any
Package Version: 0.6.0beta
PHP Version: Irrelevant
-Assigned To:
+Assigned To: kguest
Roadmap Versions:
New Comment:
-Assigned To:
+Assigned To: kguest
Previous Comments:
------------------------------------------------------------------------
[2011-01-13 19:24:45] mfonda
Added #patch bug:16570;patch:bug16570.patch;revision:1294946685;.
------------------------------------------------------------------------
[2009-09-14 15:04:29] cweiske
-Status: Open
+Status: Verified
------------------------------------------------------------------------
[2009-09-05 03:36:04] samwilson
Description:
------------
From the W3 Validator:
"This document uses an inconsistent DOCTYPE declaration. The Public
Identifier -//W3C//DTD XHTML 1.0 Strict//EN declares the XHTML 1.0
Strict document type, but the associated System Identifier
http://www.w3c.org/TR/xhtml1/DTD/xhtml1-strict.dtd does not match this
document type.
"The recommended System Identifier for XHTML 1.0 Strict is
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd."
That is to say, it should read 'w3' and not 'w3c'.
Thank you!
Test script:
---------------
<?php
$page = new HTML_Page2();
$page->display();
?>
Expected result:
----------------
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta name="Generator" content="PEAR HTML_Page" />
<title>New XHTML 1.0 Transitional Compliant Page</title>
</head>
<body>
</body>
</html>
Actual result:
--------------
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3c.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta name="Generator" content="PEAR HTML_Page" />
<title>New XHTML 1.0 Transitional Compliant Page</title>
</head>
<body>
</body>
</html>
------------------------------------------------------------------------