W3C home > Mailing lists > Public > www-validator@w3.org > September 2003

[BUG] xhtml 1.0 transitional: no attribute type on object element

From: Paul Arzul <patricka@mkdoc.com>
Date: Fri, 19 Sep 2003 15:37:53 +0100
To: www-validator@w3.org
Message-ID: <20030919143753.GA1303@mkdoc.com>

hi all,

i just tried to validate someone's xhtml 1.0 transitional page[1]. the
interesting bit is this:

<OBJECT type="application/x-shockwave-flash" data="adbanner.swf" WIDTH="100%" HEIGHT="200" id="adbanner">

the first 5 errors are "no attribute" (for type, data, WIDTH, HEIGHT and id).
then you discover that element "OBJECT" is undefined.

this then leads you to the explanation page[2], which does not mention that xml
requires lowercased elements[3]. :(

i'd like to suggest that:

- the 6th error should have been 1st, since it logically occurs first on the
page.

to do this, you'll need to change the column number of the error as starting at
the *beginning* of the start tag, rather than at it's end. (i see that things
are itemized by line and column number -- great.)

secondly, i'd like to point out that the validator's line numbers start
counting from 1, while column numbers start at 0. i think that's really
confusing and that both should start at 1.

(my offline validator, gives the correct column numbers[4].)

hope that helps,

- p

1. http://validator.w3.org/check?uri=http%3A%2F%2Fwww.netalleynetworks.com%2F
2. http://validator.w3.org/docs/errors.html#undef-tag
3. http://www.w3.org/TR/xhtml1/#h-4.2
4. http://www.htmlhelp.com/cgi-bin/validate.cgi?url=http%3A%2F%2Fwww.netalleynetworks.com%2F&warnings=yes&input=yes
Received on Friday, 19 September 2003 10:37:59 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:09 GMT