Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion iframe confusion
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Nick Theodorakis  
View profile  
 More options Aug 2 2001, 2:33 pm
Newsgroups: alt.html
From: nicholas_theodora...@urmc.rochester.edu (Nick Theodorakis)
Date: 2 Aug 2001 11:33:08 -0700
Local: Thurs, Aug 2 2001 2:33 pm
Subject: Re: iframe confusion
"Jukka K. Korpela" <jkorp...@cs.tut.fi> wrote in message <news:Xns90EF6FFA12FBjkorpelacstutfi@193.64.137.17>...

> Nick Theodorakis <nicholas_theodora...@urmc.rochester.edu> wrote:

> > - - on MacIE5, I got both the ifame _and_
> > the alternate content dispalyed below it.

> > By trial and error, I found that was because the alternate content
> > and the iframe were both surrounded by <p></p>, eg:
> > <p><iframe src="foobar"...><p>yada yada...</p></iframe></p>

> An interesting (an annoying) bug. I've added a note on it into my
> document on IFRAME, though currently only to the working version at
> http://www.cs.tut.fi/~jkorpela/html/iframe.html

> > Apparently (I think) MacIE5 sees the next <p>, and closes the first
> > one, thus breaking the alternate content out of the iframe.

> Sounds very probable, especially since you describe that the bug vanishes
> if you substitute div markup for the outer p markup. The browsers
> "parser" (tag soup processor) assumably gets into wrong mode, in some
> fancy way.

[Excuse the lateness of the reply; I didn't see your post on my
newsreader, but I found it on google.]

To follow up, I tried several combinations of <p></p> and <div></div>
(and a few other block-level elements) as containers for <iframe> and
alternate content to see how MacIE5 treated them. Here are the
results:

(1) When <p></p> is used as the container for <iframe>, the presence
any block-level element  that I tried (<p>, <div>, <h1>, even
<blockquote>) around the alternate content caused the alternate to be
displayed below the <iframe> when viewed by MacIE5.

(2)Using <div></div> as the container for <iframe> caused no such
problem in MacIE5; in each case the alternate content was properly
"hidden" by the <iframe>, even when <div></div> was used as the
container for the alternate content.

Accordingly, I would recommend that authors using alternate content in
an <iframe> should use <div></div> instead of <p></p> as the
block-level container for the <iframe> if they don't want the
alternate content to be displayed by MacIE5.

(Is there a place to which I should report this?)

Thanks for the discussion.

Nick


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.