Closed Bug 62089 Opened 25 years ago Closed 25 years ago

Content of IFRAME shouldn't be displayed

Categories

(Core :: DOM: HTML Parser, defect, P3)

defect

Tracking

()

RESOLVED INVALID

People

(Reporter: reinout, Assigned: harishd)

References

()

Details

Quoting from the IFRAME definition in the HTML 4.0 specification: <CITE> The content of the IFRAME element is used as an alternative for browsers that are not configured to show or do not support inline frames. </CITE> This works as expected in NS4 (IFRAME tag is ignored), in IE5 (only the IFRAME is displayed), but Mozilla displays the IFRAME as well as the content of the tag.
Followup: Apparently it gets confused by slightly incorrect HTML: after applying HTML Tidythe problem seems to have vanished. See also: http://pmwww.cs.vu.nl/home/liber/boven.tidy.html
Severity: normal → minor
Over to parser. When one has the following: <p><iframe></p>content</iframe> the content is shown. Nesting the tags properly fixes the problem. Not clear whether this is a valid bug...
Assignee: clayton → harishd
Component: Layout → Parser
QA Contact: petersen → janc
I am 95% positive that is invalid HTML. Marking WONTFIX. Reopen if you strongly disagree.
Status: UNCONFIRMED → RESOLVED
Closed: 25 years ago
Resolution: --- → WONTFIX
I do disagree with a WONTFIX status, for several reasons: * I don't know of a "default" policy for Mozilla when it comes to rendering incorrect HTML. Is there such a thing? If so, could someone point out whether or not the observed behaviour is in line with this policy? * Look at the IFRAME specification. Even when text is not between <P></P> tags, it is still content of IFRAME. Hence it should not be displayed. I'm sorry to say that IE5 does exactly that. (IMHO the right thing)
Status: RESOLVED → UNCONFIRMED
Resolution: WONTFIX → ---
Status: UNCONFIRMED → RESOLVED
Closed: 25 years ago25 years ago
Resolution: --- → INVALID
reporter, this issue has nothing to do w/ <p></p> tags, but closure. <iframe><p>this</p></iframe> should be ignored by moz. but <b><iframe>bold</b></iframe> could reasonably be rendered if mozilla decides your tag structure is invalid (it is according to modern dtds and we might assume that). <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> that's not an old doctype. if you want html3.2 or something, say so.
Allright, I won't argue this anymore. But be aware that when someone tries to edit a HTML file containing an IFRAME with - God forbid - Composer 4.x (haven't tried Moz) it will spit out HTML which triggers this problem in Mozilla.
updated qa contact.
QA Contact: janc → bsharma
QA Contact: bsharma → moied
You need to log in before you can comment on or make changes to this bug.