FAQ
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>

------------------------------------------------------------------------

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedSep 14, '09 at 1:04p
activeSep 14, '09 at 1:04p
posts1
users1
websitepear.php.net

1 user in discussion

Cweiske: 1 post

People

Translate

site design / logo © 2022 Grokbase