iframe validation issues

N

Neredbojias

That page is just an informal summary. It is very useful, but in a
dispute or uncertainty, the formal definitions and normative prose
should be checked.

The DTD column there is partly misleading, since some (actually,
most) elements that have L there should have both L and F. Moreover,
the empty cells should be read "this element appears in all DTDs",
which is not immediately obvious from the page.

The Frameset DTD is just a variant of the Transitional DTD, as you
can see from
http://www.w3.org/TR/REC-html40/sgml/framesetdtd.html
which really says that the DTDs are identical except for
<!ENTITY % HTML.Frameset "INCLUDE">
which makes some parts of the Transitional DTD enabled in Frameset
variant (only).

In particular, the FRAMESET element may contain the NOFRAMES part
(commonly used to demonstrate the author's cluelessness, such "This
page requires frames"), which in turn contains a BODY element, which
may contain anything that the BODY of a Transitional document may
contain. This of course includes IFRAME.

On the other hand, it would be "somewhat" weird to have IFRAME inside
an element whose content is ignored on any frames-enabled browser.
(It is remotely possible that some odd browser somewhere has a mode
where "normal" frames are disabled but inline frames are enabled. I
never saw one... but actually I think one could easily turn a normal
browser into such an oddity, by using simple CSS that sets frame {
display: none; }. But why?)

All right, and good explanation. The "non-normative" page _is_
misleading, but I was also forgetting the NOFRAMES portion of a frames
page.
 
N

Neredbojias

What Jukka said. :)

Earlier, I had futzed with a page on my local server, adding an iframe
and validating with all the three doctypes. Both a Frameset or a
Transitional doctype showed no error, but Strict did.

Well, the validator is hardly always right, either, but I was forgetting
the NOFRAMES portion of a frames page as well.
I don't have a need to use either frames or iframes.

Me, neither, but I do see a place for it at least until they (-the browser
guys and/or w3c) straighten-out the object element.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,233
Members
46,820
Latest member
GilbertoA5

Latest Threads

Top