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

Re: Getting error: Attribute "BORDER" is not a valid attribute. Did you mean "border"? for frameset

From: Lou King <lking@knob.com>
Date: Sat, 14 Nov 2009 17:34:30 -0500
Message-ID: <4AFF3076.6040809@knob.com>
To: www-validator@w3.org
grrw wrote, On 11/14/2009 11:35 AM:
> I'm using frames.  I run the validator and keep getting this one error:
>       Attribute "BORDER" is not a valid attribute. Did you mean "border"?
>  
> There is only one error and it points at this line even though I have 
> two of these lines (should get two errors if anything):
>      <frameset rows="12%,*"  border = "0">
>  
> With the above line, the code works great, but if I remove the border 
> = "0", then the code breaks - I get borders where I don't want them:
>      <frameset rows="12%,*">      -- results are undesirable
When I read paragraph  16.2.1 The FRAMESET element in the  HTML 4.01 
Specification I don't see that frameset has a border attribute. So the 
validator is correct.  TABLEs have borders. IMGs and OBJECTs have 
borders. FRAMESETs do not.

What you are seeing, I think, is your browser trying to make sense of 
your invalid code. In this case the browser you are using generates a 
result that you want. what about other browsers?

Lou
Received on Saturday, 14 November 2009 22:35:00 GMT

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