W3C home > Mailing lists > Public > www-validator@w3.org > April 2007

Re: bug in the validator!

From: Drake Wilson <drake@begriffli.ch>
Date: Thu, 5 Apr 2007 22:56:41 -0500
To: sakis apatewnas <sakis_the_fraud@yahoo.gr>
Cc: www-validator@w3.org
Message-ID: <20070406035641.GA12388@drache.begriffli.ch>
Quoth sakis apatewnas <sakis_the_fraud@yahoo.gr>, on 2007-04-05 15:35:32 +0100:
>     Error         Line 43 column 15:         element "iframe" undefined.
> frameborder="1">
>                  You have used the element named above in your document, but the       document type you are using does not define an element of that name.       This error is often caused by:     
>       
>       incorrect use of the "Strict" document type with a document that        uses frames (e.g. you must use the "Frameset" document type to get        the "<frameset>" element),
>       by using vendor proprietary extensions such as "<spacer>"       or "<marquee>" (this is usually fixed by using CSS to achieve       the desired effect instead).
>       by using upper-case tags in XHTML (in XHTML attributes and elements       must be all lower-case.

HTML 4.01 Strict does not define the 'iframe' tag.  HTML 4.01
Transitional does.  You have not specified which DOCTYPE you are
using.  My guess is that you are using Strict, and that that is why
your document is not validating.

> i took info for this tag from http://www.w3schools.com/tags/tag_iframe.asp
> 
> where is clearly mentioned that i can use ALL the oprional attributes in this!

It is also "clearly mentioned" that the DTDs in which this is allowed
are the Transitional and Frameset DTDs.  (Aside from which, I haven't
seen anything about the W3 Schools site that would make it more
authoritative than the official validator, but that's just a guess.)

So let's try this again.  Which DOCTYPE are you using?

   ---> Drake Wilson

Received on Friday, 6 April 2007 03:56:46 GMT

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