Closed Bug 22177 Opened 25 years ago Closed 25 years ago

if dynamically written by JS, IFRAME in TABLE doesn't show contents

Categories

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

x86
Windows NT
defect

Tracking

()

VERIFIED INVALID

People

(Reporter: ekrock, Assigned: rickg)

Details

Attachments

(2 files)

1999121608 on WinNT 4.0 SP3. If you create a hardcoded HTML document that has a TABLE with a single cell that contains an IFRAME, the IFRAME displays fine. (see ex. testyahoostatic.html) If you create the same markup for that table as a JavaScript string and document.write() the string to the body of the same document, the contents of the IFRAME are never displayed. (see ex. testyahoodynamic.html) To repro: open attached test case testyahoodynamic.html and note that contents of IFRAME never display. ---------------- Example testyahoostatic.html: <html> <head> <title>BugAThon Progress Tracker</title> </head> <body> <table BORDER WIDTH='100%'><tr> <td><IFRAME SRC='http://www.yahoo.com/'></IFRAME></td> </tr></table> </body> </html> --------------- --------------- Example testyahoodynamic.html: <html> <head> <title>BugAThon Progress Tracker</title> </head> <body> <script> var s = "<table BORDER WIDTH='100%'><tr><td><IFRAME SRC='http://www.yahoo.com/'></IFRAME></td></tr></table>"; document.write(s); </script></body></html> --------------- Will attach both of these simplified test cases.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → INVALID
!@#$% me. Appears that I was causing the problem myself by nesting double quotes within double quotes. Dynamically written IFRAMEs work fine with either single or double quotes around the URL in additional testing. INVALID my own bug within only 8 minutes--a world record?
Status: RESOLVED → VERIFIED
verified
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: