Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.6.5

Bug #16570 Doctype System Identifier should be 'w3' not 'w3c'.
Submitted: 2009-09-05 07:36 UTC
From: samwilson Assigned: kguest
Status: Closed Package: HTML_Page2 (version 0.6.0beta)
PHP Version: Irrelevant OS: Any
Roadmaps: (Not assigned)    
Subscription  


 [2009-09-05 07:36 UTC] samwilson (Sam Wilson)
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>

Comments

 [2009-09-14 19:04 UTC] cweiske (Christian Weiske)
-Status: Open +Status: Verified
 [2011-01-14 00:24 UTC] mfonda (Matthew Fonda)
 [2011-09-08 03:54 UTC] kguest (Ken Guest)
-Assigned To: +Assigned To: kguest
 [2011-09-08 04:01 UTC] kguest (Ken Guest)
-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/