[Bug 1453] New: Badly formed XML comment not detected in application/xhtml+xml document

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

           Summary: Badly formed XML comment not detected in
                    application/xhtml+xml document
           Product: Validator
           Version: 0.6.7
          Platform: PC
               URL: http://www.sitepoint.com/examples/badxhtml/badcomments.x
                    html
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Parser
        AssignedTo: link@pobox.com
        ReportedBy: tom@sitepoint.com
         QAContact: www-validator-cvs@w3.org


When parsing an application/xhtml+xml document with an XHTML 1.0 document type
definition, the following comment should not validate:

<!-- this is a comment ---- another comment -->

This comment would be valid in SGML, but is not well-formed XML and cannot be
parsed by XML parsers.

See testcase URL

Actual results:
Validator certifies document as valid, showing only a warning.

Expected results:
Validator parses document as XML and identifies this as a well-formedness error.

Received on Tuesday, 17 May 2005 03:15:32 UTC