W3C home > Mailing lists > Public > public-html@w3.org > October 2008

Re: <q> and commas

From: Sam Kuper <sam.kuper@uclmail.net>
Date: Thu, 30 Oct 2008 12:33:30 +0000
Message-ID: <4126b3450810300533i40d69698y82a20dd85774fae3@mail.gmail.com>
To: "Philip TAYLOR (Ret'd)" <P.Taylor@rhul.ac.uk>
Cc: "Robert J Burns" <rob@robburns.com>, "Justin James" <j_james@mindspring.com>, "HTML WG" <public-html@w3.org>
2008/10/30 Philip TAYLOR (Ret'd) <P.Taylor@rhul.ac.uk>

> OK, fair comment, but one that begs the question
> "what makes markup invalid ?".  The code itself
> is valid, if one believes the validator, yet it
> contravenes a "should" (or, to be more accurate,
> a "should not") in the prose.  Does that make the
> document "invalid", or simply "poorly conforming" ?


Actually, the HTML 4.01 spec is slightly mealy-mouthed on this point. See
s.19.1 [1]:

"[You] should check your document against an SGML parser such as nsgmls (see
[SP]), to verify that HTML documents conform to the HTML 4 DTD. ... Beware
that such validation, although useful and highly recommended, does not
guarantee that a document fully conforms to the HTML 4 specification ... for
instance, it cannot catch errors such as setting the width attribute of an
IMG element to an invalid value (i.e., "foo" or "12.5"). ... Nevertheless,
this type of validation is still highly recommended since it permits the
detection of a large set of errors that make documents invalid."

My reading of this, especially the last sentence I've quoted above, is that
while automated "validators" detect "a large set of errors that make
documents invalid", they cannot catch all such errors. Since avoiding all
such errors seems to be synonymous with conforming to the HTML 4
specification, this appears to imply that the sample document you presented
is, indeed, invalid. Synonymously, it is not in conformance with the spec.

For what it's worth, the HTML 5 spec as it stands is a bit clearer on these
matters:

>From s.2.2 [2]:

"[There] are three types of conformance criteria:
- Criteria that can be expressed in a DTD.
- Criteria that cannot be expressed by a DTD, but can still be checked by a
machine.
- Criteria that can only be checked by a human."

Regards,

Sam

[1]http://www.w3.org/TR/html401/sgml/intro.html#h-19.1
[2]http://www.w3.org/html/wg/html5/#conformance-requirements
Received on Thursday, 30 October 2008 12:34:06 UTC

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:38:58 UTC