[Bug 740] New: Doctype rewrite vs. XmlDecl and Source Listing

http://www.w3.org/Bugs/Public/show_bug.cgi?id=740

           Summary: Doctype rewrite vs. XmlDecl and Source Listing
           Product: Validator
           Version: 0.6.6
          Platform: Other
               URL: http://validator.w3.org/check?uri=http://www.bjoernsworl
                    d.de/temp/xmldecl-following-
                    doctype.html;doctype=XHTML+1.0+Strict;ss
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: check
        AssignedTo: link@pobox.com
        ReportedBy: bjoern@hoehrmann.de
         QAContact: www-validator-cvs@w3.org


http://validator.w3.org/check?uri=http://www.bjoernsworld.de/temp/xmldecl-
following-doctype.html;doctype=XHTML+1.0+Strict;ss

gives

 1: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 
Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 2: <?xml version='1.0'?>
 3: <html xmlns="http://www.w3.org/1999/xhtml">
 4: <head>
 5:   <title></title>
 6: </head>
 7: 
 8: <body>
 9:   <p>...</p>
10: </body>
11: </html>

which is bad as the XML Declaration must appear prior to any markup. It is also 
bad as that is not the actual source code which one would expect to see here.



------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.

Received on Sunday, 23 May 2004 17:43:20 UTC