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

Bug in Validator ????

From: Peter Sarro <peter.sarro@gmail.com>
Date: Mon, 3 Aug 2009 14:27:58 -0400
Message-ID: <f6d111f00908031127j10c74a7dw297cbbd40c2c473@mail.gmail.com>
To: "www-validator@w3.org" <www-validator@w3.org>
Cc: psarro@convergencewebs.com
First, the error message the validator throws is not in you database it
would seem.

The problem/validator bug:

Here is some (X)HTML that was *direct input* into the validator and which
verifies error-free as valid XHTML 1.0 Frameset:

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

    <title>My Frameset</title>
    <meta http-equiv="content-type"
        content="text/html;charset=utf-8" />
    <meta http-equiv="Content-Style-Type" content="text/css" />
<frameset rows="130,*,60">
    <frame src="topMenu.html" name="topFrame" scrolling="no"
noresize="noresize" id="topFrame" title="topFrame" />
    <frame src="HomePageSlideshow.html" name="mainFrame" id="mainFrame"
title="mainFrame" />
    <frame src="footerMenu.html" name="footerFrame" scrolling="no"
noresize="noresize" id="footerFrame" />

     Your browser does not support frames.



With respect to the above code you will note that for the first frameset
tag, where "rows=130,*,60" is specified, there is no other attribute such as
frameborder, border, or framespacing.

Placing any one or more of the following attributes: frameborder,
framespacing, or border, results in the Validator error. Using framborder
results in an error stating that:

" Attribute "frameborder" exists, but can not be used for this element. "

Both framespacing and border are not defined, according to 16.2.2 "The Frame
Element" (at URL: http://www.w3.org/TR/REC-html40/present/frames.html) - so
I would expect using those two elements would therefore cause a validation

However, with respect to the same referece to the FRAME element under
FRAME element", under *Attribute Definitions* specifies

a number of attributes and " frameborder" is listed as being a valid
attribute for the Frame element with the possible value of either 0 (zero)
or 1 (digit one).

Attempting to validate the above code WITH the frameborder="0" or
frameborder="1" attribute, for example, <frameset rows="130,*,60"
frameborder="0">, results in a Validator error of:

"Attribute "frameborder" exists, but can not be used for this element. "

So is this a validator BUG (it would appear to be) or have I missed
something subtle here???

Thank you,

Peter Sarro
Received on Wednesday, 5 August 2009 11:45:39 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:59:14 UTC