Closed Bug 301682 Opened 19 years ago Closed 19 years ago

content after iframe isn't displayed

Categories

(Core :: DOM: HTML Parser, defect)

defect
Not set
normal

Tracking

()

VERIFIED INVALID

People

(Reporter: marius.andreiana, Unassigned)

Details

Attachments

(1 file)

The content after an iframe isn't rendered to display. I've reduced the problem
to the attached testcase.
The text "This text doesn't appear" should be after the table which contains the
iframe.
Attached file testcase
That's clearly invalid behavior, and the parser is eating up that last fragment
of text, presumably because of the </p> tag. Moving over to parser, possibly
invalid.
Assignee: nobody → parser
Component: General → HTML: Parser
Product: Firefox → Core
QA Contact: general → mrbkap
Version: 1.0 Branch → Trunk
(In reply to comment #2)
> That's clearly invalid behavior

I meant "invalid HTML".
OS: Linux → All
Hardware: PC → All
your iframe is missing a close tag.
(In reply to comment #4)
> your iframe is missing a close tag.

Or rather, in HTML, iframes are not empty elements, and so you cannot
(mis-)represent them as such (ie "<iframe ... />").  The parser assumes the '/'
is a typo, eats the rest of the document (waiting for the </iframe>), then adds
the closing tags itself.

Reporter, the DOM Inspector Is Your Friend.
Yeah, this bug is INVALID, as filed. You cannot use the XML /> empty element
syntax in HTML, so the <iframe> is never actually closed (actually, in HTML <tag
/> means <tag> /&gt; but that's another story entirely). Marking INVALID.
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → INVALID
Thanks for explanation!
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: