Closed Bug 86530 Opened 24 years ago Closed 24 years ago

Table containing iframes generated with document.write is laid-out wrongly

Categories

(Core :: Layout, defect, P4)

x86
Windows 2000
defect

Tracking

()

RESOLVED FIXED
mozilla1.2alpha

People

(Reporter: womble, Assigned: attinasi)

References

()

Details

(Whiteboard: [bae:20011029])

Attachments

(1 file)

From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.1) Gecko/20010607 BuildID: 2001060703 PDABuzz forum pages include advert images inside iframes for which the HTML code is generated using document.write() to randomise the image URLs used. If JavaScript is disabled, static HTML code is used instead, and it appears to be identical aside from lack of randomisation of the URLs of the images. However, the page is rendered substantially differently when JavaScript is enabled. Reproducible: Always Steps to Reproduce: 1. Ensure that JavaScript is turned on. 2. Point the browser at the given URL (or any other PDABuzz discussion thread page, if this one goes away). Actual Results: The adverts appear surrounded to the right of the links at the left-hand side, with a lot of blank space around them, and the discussion is only accessible by scrolling to the right. Expected Results: The adverts should appear in a column along with the links at the left-hand side, and the discussion itself should be laid out within the remaining width of the browser window.
Does the same thing happen if the iframes are written in the HTML file instead of being document.written? If so, this belongs in the layout component.
Confirmed on Build 2001061804 win32 on win98 when they are not document.written it doesn't happen. This might have something to do with having lots of nested tables in the right <td>. I tried downloading the page and removing some of the nested tables and it fixes the problem at some point. Will need more investigation.
found the cause. the page layout problem is due to 'nowrap' appearing on line 73 in the source. So does this belong to layout or dom?
Status: UNCONFIRMED → NEW
Ever confirmed: true
_basic@yahoo.com, thanks for debugging this! Over to layout.
Assignee: jst → karnaze
Component: DOM Level 0 → Layout
QA Contact: desale → petersen
the layout issue seems to be resolved, but the randamized content of the iframe seems to be frozen. I pulled out the content of the iframe into a separate test case and it randomized correctly. I nested it within two tables and it still worked. However, I did have to reload the page a few times for it to finally rotate like it rotates in IE. Attaching reduced test case.
Assignee: karnaze → attinasi
Priority: -- → P4
Whiteboard: [bae:20011029]
Target Milestone: --- → mozilla1.0
I am the original reporter with a new email address. The problem no longer occurs in version 0.9.5 (build 2001101117) on Windows 2000. This should presumably be verified fixed and then closed?
Target Milestone: mozilla1.0 → mozilla1.2
Resolving as fixed based on Ben Hutchings last comment.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: