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

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

Search Discussions

  • Ken at Sep 7, 2011 at 10:01 pm
    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
    +Status: Closed
    Type: Bug
    Package: HTML_Page2
    Operating System: Any
    Package Version: 0.6.0beta
    PHP Version: Irrelevant
    Assigned To: kguest
    Roadmap Versions:
    New Comment:

    -Status: Verified
    +Status: Closed
    Thank you for your bug report. This issue has been fixed
    in the latest released version of the package, which you can download at
    http://pear.php.net/get/




    Previous Comments:
    ------------------------------------------------------------------------

    [2011-09-07 23:54:04] kguest

    -Assigned To:
    +Assigned To: kguest


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

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

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

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedSep 7, '11 at 9:53p
activeSep 7, '11 at 10:01p
posts2
users1
websitepear.php.net

1 user in discussion

Ken: 2 posts

People

Translate

site design / logo © 2022 Grokbase