W3C home > Mailing lists > Public > www-validator@w3.org > August 2004

Re: [VE][106] Error Message Feedback

From: Jukka K. Korpela <jkorpela@cs.tut.fi>
Date: Sat, 7 Aug 2004 19:06:00 +0300 (EEST)
To: Henk Kleefstra <hkleefstra@home.nl>
cc: www-validator@w3.org
Message-ID: <Pine.GSO.4.58.0408071859440.13284@korppi.cs.tut.fi>

On Tue, 3 Aug 2004, Henk Kleefstra wrote:

> > /Line 41, column 9/: "FONT" is not a member of a group specified for
> > any attribute
> >
> > |<H1 FONT *F*ACE="IMPACT">Voertuigen</FONT></H1>|

In practical terms, the problem is that the markup lacks some punctuation;
it should be
<H1><FONT FACE="IMPACT">Voertuigen</FONT></H1>

On the theoretical side, the validator's error message adequately tells
what the problem is, in SGML terms. What else _could_ it do? Technically,
a lone word like FONT is allowed (in SGML) as an attribute specification
(instead of the usual name=value syntax), if and only if one of the
allowed attributes is declared as having a discrete set of values, with
FONT as one of them (and with no ambiguity). This is not the case in the
HTML DTD applied here. But for example <H1 RIGHT>Foo</H1> would validate
(but most probably not work on browsers), since RIGHT is one of the
possible keyword-like values of the ALIGN attribute.

-- 
Jukka "Yucca" Korpela, http://www.cs.tut.fi/~jkorpela/
Received on Saturday, 7 August 2004 16:06:03 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 07:14:08 UTC