Closed Bug 89915 Opened 23 years ago Closed 23 years ago

table width distorted; document.write inside a nowrap TD

Categories

(Core :: Layout: Tables, defect)

defect
Not set
major

Tracking

()

VERIFIED FIXED
mozilla0.9.4

People

(Reporter: jrgmorrison, Assigned: alexsavulov)

References

()

Details

(Keywords: top100, topembed, Whiteboard: vtrunk)

Attachments

(2 files)

Overview Description: 
  Table width is distorted due to a document.write of a form control
  inside a 'nowrap' TD, within a fixed width table.

Steps to Reproduce: 
1) Load http://www.mapblast.com/

Actual Results: left hand "panel" is stretched to viewport width, pushing
                other contents off the right margin

Expected Results: not distorted

Reproducibility: 100% win32, probably xp but haven't checked.

Build Date & Platform Bug Found: 07/06 trunk build win2k


Additional Information: 

Simplified example.


<html>
<body>
<form>
<table width="782" border>
 <tr>
  <td width="290" valign="top"> 
   <table width="100%" border="1">
    <tr> 
     <td nowrap>
      <select>
       <script language=JavaScript> 
         var airportList =
                "<option value=''>-- US Airport Codes --" +
                "<option value='CAK'>CAK: Akron-Canton, OH";
         document.write(airportList);
       </script> 
      </select>
     </td>
    </tr>
   </table>
  </td>
  <td width="492">
   <img src="http://www.mozilla.org/images/mozilla-banner.gif" 
        width="456" height="259"> 
  </td> 
 </tr> 
</table> 
</form>
</body>
</html>
*** Bug 63388 has been marked as a duplicate of this bug. ***
I think the document.write is not the culprit but the 'nowrap' is. In that case
it seems to be a dup of bug #45621
Reassigning to alexsavulov.
Assignee: karnaze → alexsavulov
The testcase that I previously attached no longer demonstrates the problem 
in  trunk builds. However, the original URL http://www.mapblast.com/ is 
still grossly distorted.
added top100,topembed
Severity: normal → major
Keywords: top100, topembed
Target Milestone: --- → mozilla0.9.4
Depends on: 93363
fixed on trunk
Whiteboard: vtrunk
fixed on trunk and branch
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
 This is a nowrap problem.. But anyhow the problem seems to have been resolved..
The given URL and testcases are fine
Build ID # 2001082008 
Status: RESOLVED → VERIFIED
win32 build 2001082008 win98SE

Are you sure this is fixed? When the mapblast.com home page first displays, it
does look fixed. But enter a street address and a zip code, then click the
Create Map button, and the table is all stretched out again.

Just doing a reload on the page, while the table looks "normal", I see the
stretched-out table briefly, then it snaps back to normal.

Or is this a different problem?
the testcases are fixed, but problems appear whan the page does not finish
loading entirely (some images are missing and similar stuff). another bug must
be opened about this issue. see also comments on bug 93408.
yeah for the next page (after Create Map) I will open another bug, maybe I'll
nominate it as topembed
bug 96334 created for page after "Create Map"
Yes there is a problem with the page when u click on the create map.. But that 
appears to be a problem with the "nowrap" 
I think the problem appears when the nowrap uses % width in a <td> like...       
<td nowrap width="98%">
 
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: