This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 1453 - Badly formed XML comment not detected in application/xhtml+xml document
Summary: Badly formed XML comment not detected in application/xhtml+xml document
Status: RESOLVED FIXED
Alias: None
Product: Validator
Classification: Unclassified
Component: Parser (show other bugs)
Version: 0.6.7
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Terje Bless
QA Contact: qa-dev tracking
URL: http://www.sitepoint.com/examples/bad...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-17 02:41 UTC by Thomas Rutter
Modified: 2007-05-24 04:48 UTC (History)
0 users

See Also:


Attachments

Description Thomas Rutter 2005-05-17 02:41:54 UTC
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.
Comment 1 Olivier Thereaux 2007-05-24 04:48:35 UTC
This is now caught by the xml-well-formedness checking added in the 0.8.0 (currently beta) version of the validator. 

Thanks for the bug report.