|
Posted by mark4asp on June 26, 2007, 4:06 am
Please log in for more thread options
On Mon, 25 Jun 2007 19:04:13 GMT, "Beauregard T. Shagnasty"
>Scott Bryce wrote:
>
>> mark4asp wrote:
>>> Why is this page invalid?
>>
>> <html snipped>
>>
>> You are using a frameset doctype on a page that is not a frameset.
>>
>> Change the doctype to
>>
>> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
>> "http://www.w3.org/TR/html4/loose.dtd">
>
>..or better yet, HTML Strict - for new documents. Use Transitional only
>if you are .. well .. transitioning legacy documents.
>
><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
> "http://www.w3.org/TR/html4/strict.dtd">
>
>> Then it will validate.
>
>..and whether the page validates with either, will depend solely on the
>lack of errors. <g>
The page cannot be HTML 4.01 strict because it has an iframe. I suppose
that means there is no legal syntax for iframes because I agree with
Beauregard that transitional is not much use. I guess I will have to
drop that iframe if I want my stuff to be valid HTML 4.01 strict.
Which is a real shame because iframes are so very useful for AJAX but I
should try replacing it with an object.
|