Kevin said:
I read that a lot, but doesn't the spec say that XHTML 1.1 _should_ be
served as application/xhtml+xml (or application/xml):
http://www.w3.org/TR/xhtml-media-types/#summary
No, it is a W3C Note that says so (which does not make it less correct,
however). It appears that the XHTML 1.1 Specifications does not say
anything about that.
The Note says that XHTML 1.1 SHOULD NOT be served as text/html (read: doing
so is not recommended, see below), which leaves "XHTML 1.1 SHOULD be served
as application/xhtml+xml" as recommended choice according to the table
there. That is why XHTML 1.1 introduces _another_ disadvantage _in
addition_ to that XHTML 1.0 already introduces when it comes to UAs that
do not support XHTML at all, like IE. Which is what David stated.
You are citing from a superseded edition of the XHTML 1.0 Specification,
while this regards XHTML 1.1. It think citing the XHTML 1.1 Specification
is more appropriate here which refers to RFC2119 without change of the
meaning of the keywords defined there:
| The keywords "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
| "SHOULD", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are
| to be interpreted as described in [RFC2119].
Unfortunately, it appears the XHTML 1.1 Specification says anything about
the media type that should be used. However, the same definition applies
to
|
http://www.w3.org/TR/xhtml-media-types/#summary
which you also referred to. That leaves us with
,-[RFC2119]
|
| [...]
| 3. SHOULD This word, or the adjective "RECOMMENDED", mean that there
| may exist valid reasons in particular circumstances to ignore a
| particular item, but the full implications must be understood and
| carefully weighed before choosing a different course.
|
| 4. SHOULD NOT This phrase, or the phrase "NOT RECOMMENDED" mean that
| there may exist valid reasons in particular circumstances when the
| particular behavior is acceptable or even useful, but the full
| implications should be understood and the case carefully weighed
| before implementing any behavior described with this label.
XHTML 1.0 Appendix C is flawed. XHTML cannot always be written in a way
that it is HTML-compatible. It can _maybe_ only be written in a way that
it is tagsoup parser-compatible.
PointedEars