Re: [VE][106] Error Message Feedback

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