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 152 - Upload/Textarea with support for HTML/XHTML documents
Summary: Upload/Textarea with support for HTML/XHTML documents
Status: REOPENED
Alias: None
Product: CSSValidator
Classification: Unclassified
Component: upload file (show other bugs)
Version: CSS Validator
Hardware: Other other
: P5 enhancement
Target Milestone: ---
Assignee: This bug has no owner yet - up for the taking
QA Contact: qa-dev tracking
URL:
Whiteboard:
Keywords:
: 5662 6070 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-02-27 16:32 UTC by Philippe Le Hegaret
Modified: 2009-01-21 21:57 UTC (History)
3 users (show)

See Also:


Attachments

Description Philippe Le Hegaret 2003-02-27 16:32:35 UTC
It is not possible to upload an HTML document, only CSS documents.
Comment 1 Olivier Thereaux 2004-10-06 01:37:02 UTC
In the meantime, the upload interface now notes that *only CSS* files are accepted
Comment 2 Olivier Thereaux 2007-07-19 09:09:54 UTC
Related discussion: http://lists.w3.org/Archives/Public/www-validator-css/2007Jul/0016.html
«should be easy to add. The hard part is to determine if we html or css was submitted. In Unicorn, we do that using a dropdown list of mimetypes, but here it should be possible to guess the type from the content»

When using upload, we would also have a media type. So the absence of media type would only be a proble for "direct input". There, heuristics to guess whether the content is CSS or HTML might be a tad tricky (think of the cases where people put html-style comments in CSS stylesheets...) but feasible.
Comment 3 Olivier Thereaux 2007-09-26 09:11:03 UTC
interface still says "CSS files only", to be changed.

FAQ should be updated to mention that in these modes, import not followed
Comment 4 Olivier Thereaux 2008-03-12 16:26:44 UTC
Latest version of the validator, released today, now accepts HTML or CSS via direct input.

Still doesn't seem to work with file upload, I'm leaving this bug open.
Comment 5 Olivier Thereaux 2008-03-12 16:33:56 UTC
Actually it *does* seem to work with file upload, although there is a different bug when uploading a file with a media type unknown to the validator.

Will close this and open a separate bug for the upload crash.
Comment 6 Olivier Thereaux 2009-01-21 21:29:40 UTC
*** Bug 6070 has been marked as a duplicate of this bug. ***
Comment 7 Olivier Thereaux 2009-01-21 21:36:18 UTC
Colour me utterly confused here. As of today:

* both the production (jigsaw.w3.org) and dev (qa-dev.w3.org) instances seem to
be recognizing html when sent through file upload 
* the file upload interface still says "CSS files only"
* in direct input mode, the validator stumbles on the first html-ism and stops
* there is no UI to tell the validator "this is html"

I think it is fair to assume:
* HTML is now supported on "by URI" and "File Upload" modes
* not supported (yet) in "Direct Input" mode

This calls for reopening of this RFE.

Comment 8 Olivier Thereaux 2009-01-21 21:41:38 UTC
http://lists.w3.org/Archives/Public/www-validator-cvs/2009Jan/0173.html
removes the "CSS files Only" note from the "file upload" UI
Comment 9 Olivier Thereaux 2009-01-21 21:57:29 UTC
*** Bug 5662 has been marked as a duplicate of this bug. ***