Forum Moderators: open

Message Too Old, No Replies

Problems with the W3 Validator

Why is it calling this an error?

         

buckworks

5:02 am on Jun 16, 2009 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



I've been trying to validate some new pages and the W3 Validator is driving me nuts. It keeps flagging errors like this:

Attribute "HEIGHT" is not a valid attribute. Did you mean "height"?

But I'm already spelling everything in lower case!

I'm using <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

and

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">

Can anyone shed some light on this for me?

pageoneresults

5:17 am on Jun 16, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



There are certain elements where the height attribute is not valid. The <table> element is one of them. What you describe above though sounds like a bug. If you do have a height attribute assigned to an element where it is not valid, removing it will probably clear that error.

g1smd

8:13 pm on Jun 16, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



You might be able to set the value by using CSS instead.

buckworks

10:05 pm on Jun 17, 2009 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Here's another one:

Attribute "LANGUAGE" is not a valid attribute. Did you mean "language"?

But again, the word "language" was already in lower case.

It's done the same thing in a number of different places, saying "did you mean" when the thing it's questioning was already in lower case. There's no rhyme nor reasons to it that I can figure out.

swa66

11:23 pm on Jun 17, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I think it meant to say you're not "allowed" to use the language attribute anymore.

rocknbil

4:14 pm on Jun 18, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm thinking this is one of those validator cascade errors where it's only one real error and kicking warnings elsewhere. Certainly you're not using <script language="javascript">, right?

I'd go at it by process of elimination, strip out most of the page until you get a green light, add portions little by little until the errors re-appear.