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 296 - Validator output page is ill-formed as XML
Summary: Validator output page is ill-formed as XML
Status: RESOLVED FIXED
Alias: None
Product: CSSValidator
Classification: Unclassified
Component: main pages/translations (show other bugs)
Version: CSS Validator
Hardware: Other other
: P1 normal
Target Milestone: ---
Assignee: Bj
QA Contact:
URL: http://jigsaw.w3.org/css-validator/va...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-21 03:52 UTC by TarquinWJ
Modified: 2004-10-05 18:42 UTC (History)
3 users (show)

See Also:


Attachments

Description TarquinWJ 2003-08-21 03:52:03 UTC
The URL provided may not persist.

Sorry, I was playing around.

If a page validates as CSS without any errors or warnings, the line saying so is 
invalid XHTML '<hr><h2>No error or warning found</h2>', but the dctype is XHTML.
reports:
This page is not Valid XHTML 1.0 Strict!
Line 21, column 4: end tag for "hr" omitted, but OMITTAG NO was specified 
  <hr><h2>No error or warning found</h2>

Also, character encoding is not given in the validator output page.
http://validator.w3.org/check?uri=http%3A%2F%2Fjigsaw.w3.org%2Fcss-validator%
2Fvalidator%3Furi%3Dhttp%253A%252F%252Fwww.w3.org%252FStyleSheets%252Fhome.css%
26warning%3D1%26profile%3Dcss2
reports:
I was not able to extract a character encoding labeling from any of the valid 
sources for such information. Without encoding information it is impossible to 
validate the document.
Comment 1 Ran Ari-Gur 2003-10-16 14:59:05 UTC
The following files use <hr> where they should use <hr />:

2002/css-validator/org/w3c/css/css/html.properties.en
2002/css-validator/org/w3c/css/css/xhtml.properties.en
2002/css-validator/validator-upload.html.ja

of which I think the second is the particular culprit here.

This should be a quick fix. What form do you want patches in?
Comment 2 Bj 2004-03-01 04:19:51 UTC
Fixed in CVS. Thanks for your report.
Comment 3 Marcel van Beurden 2004-04-02 02:55:16 UTC
Also the page showing the erros in your validated css is not valid. The <ul>
never gets closed.
Comment 4 Etan Wexler 2004-10-05 18:33:01 UTC
I changed the "URL" field to
http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww.w3.org%2F

The error no longer appears. I'm resolving as "FIXED".
Comment 5 Etan Wexler 2004-10-05 18:42:02 UTC
Ran Ari-Gur's comment 1 is illuminating. String manipulation is the wrong
paradigm for markup, especially in an object-oriented language like Java. The
validator should construct an infoset and then serialize the infoset for
transmission.