header accept: application/xhtml+xml

Should not the validator send the 'Accept: application/xhtml+xml' upon a
remote file request with the intent of validation? I know of several web
developers sending the application/xhtml+xml MIME type to browsers that
send that accept field but text/html to those that lack it. Perhaps
text/plain and text/html could also be included in the accept field
somehow. Perhaps even, if you choose to override the DOCTYPE to HTML,
then the application/xhtml+xml type would not be sent and only
text/html.
 
This would add much more functionality to the validation of XHTML. For
instance, some times you can do more than just send a different MIME
type, but instead assume that XHTML is not supported and send HTML 4
content instead. If you want to validate both modes, the user should
have some degree of control over what is sent in the Accept header.
 
Yours,
 
Damien Bezborodow

Received on Wednesday, 9 March 2005 03:42:57 UTC