Bug #16570 [Opn->Ver]: Doctype System Identifier should be 'w3' not 'w3c'.
| From: | cweiske@php.net | Date: | Mon, 14 Sep 2009 14:04:29 +0000 |
| Subject: | Bug #16570 [Opn->Ver]: Doctype System Identifier should be 'w3' not 'w3c'. | ||
| References: | 1 | Groups: | php.pear.bugs |
| Request: | Send a blank email to pear-bugs+get-1623@lists.php.net to get a copy of this message | ||
Edit report at http://pear.php.net/bugs/bug.php?id=16570&edit=1
ID: 16570
Updated by: cweiske@php.net
Reported By: sam at archives dot org dot au
Summary: Doctype System Identifier should be 'w3' not 'w3c'.
-Status: Open
+Status: Verified
Type: Bug
Package: HTML_Page2
Operating System: Any
Package Version: 0.6.0beta
PHP Version: Irrelevant
Roadmap Versions:
New Comment:
-Status: Open
+Status: Verified
Previous Comments:
------------------------------------------------------------------------
[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>
------------------------------------------------------------------------
--
Edit this bug report at http://pear.php.net/bugs/bug.php?id=16570&edit=1