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 4514 - Check XHTML 1.0 Documents served as text/html against HTML Compatibility Guidelines (Appendix C)
Summary: Check XHTML 1.0 Documents served as text/html against HTML Compatibility Guid...
Status: NEW
Alias: None
Product: Validator
Classification: Unclassified
Component: check (show other bugs)
Version: 0.8.0b1
Hardware: All All
: P2 normal
Target Milestone: 1.0
Assignee: Olivier Thereaux
QA Contact: qa-dev tracking
URL:
Whiteboard:
Keywords:
: 14306 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-04-30 15:35 UTC by Olivier Thereaux
Modified: 2011-10-09 22:17 UTC (History)
1 user (show)

See Also:


Attachments

Description Olivier Thereaux 2007-04-30 15:35:14 UTC
[[ 
XHTML Documents which follow the guidelines set forth in Appendix C, "HTML Compatibility Guidelines" may be labeled with the Internet Media Type "text/html" [RFC2854], as they are compatible with most HTML browsers. 
]] -- http://www.w3.org/TR/xhtml1/#media

Would be good to integrate validator to appc checker in some way or other (already done through unicorn, but we could look into a closer integration)
Comment 1 Etienne Miret 2011-10-09 21:24:24 UTC
*** Bug 14306 has been marked as a duplicate of this bug. ***
Comment 2 Mark 2011-10-09 22:17:43 UTC
Related to this bug/bug 14306 the validator should warn of issues with file type.  When mime control is not used by default (opening local file) a Strict DTD + text/html media type will render as HTML 4 in all browsers when the .html file type is used.  

Simple test (when used with above doctype/media type):

<html>
<head>
</head>
<body>
<textarea />
</body>
</html>

When saved as .html renders as html 4 and </body></html> render inside the text element.  When saved as .xhtml it renders as XHTML and renders as expected.  Currently the validator does not address this in any way.