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

Re: body and bgproperties

From: Jukka K. Korpela <jkorpela@cs.tut.fi>
Date: Fri, 16 Jan 2004 11:00:22 +0200 (EET)
To: WP <wojtek.pol@wp.pl>
Cc: www-validator@w3.org
Message-ID: <Pine.GSO.4.58.0401161052220.10272@korppi.cs.tut.fi>

On Thu, 15 Jan 2004, WP wrote:

> In first of them I've writen
> and validator found an error (BGPROPERTIES is forbidden)

Indeed, since the DTD you declare (or any other DTD in HTML
specifications) does not allow a BGPROPERTIES attribute.
(On the practical side, you could use background-attachment: fixed
in CSS instead.)

> and in second one
> The second page is OK for www-validator ;).

Yes, because it actually complies with the DTD. The reason is
that between those attributes you have


without quotation marks (so the quotes are what you are actually missing).

This gets actually rather complicated. It's part of the Saga of the
slashed validators, explained at http://www.cs.tut.fi/~jkorpela/qattr.html
but the basic points are:
- the solidus (slash, "/") character is actually taken as
  terminating the BODY tag, by formal SGML syntax
- to avoid such problems, always put quotation marks around all
  attribute values, e.g. background="Graphics/zabki.gif"

Jukka "Yucca" Korpela, http://www.cs.tut.fi/~jkorpela/
Received on Friday, 16 January 2004 04:00:28 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:30:42 UTC