Closed
Bug 1202
Opened 26 years ago
Closed 26 years ago
nowrap causes body to measure self wrong
Categories
(Core :: Layout, defect, P1)
Tracking
()
VERIFIED
FIXED
People
(Reporter: buster, Assigned: buster)
References
()
Details
I get different answers from the body inside a cell depending on whether the
cell has a "nowrap" attribute, or whether the content is inside a "<NOBR>" tag.
I believe the answer should be identical regardless of the method of specifying
that soft line breaks are turned off.
Here is a minimized test case. If you replace the nowrap in the cell with a
<nobr> around the cell content, the page lays out correctly.
===============================================================================
<html><body bgcolor="#ffffff" text="#000000" link="#054BBB" vlink="#006342">
<table width="100%" border=0 cellspacing=0 cellpadding=0 bgcolor="#FFCC00">
<tr>
<td valign="top"><img src="http://www.cnet.com/Images/Fdoor/cnetlogo60.gif"
width=104 height=80 border=0 align="left" alt="CNET"><br>
<font face="arial, helvetica" color="#006633"><b>Tuesday, August
11</b><br></font>
<img src="http://www.cnet.com/Images/Fdoor/fdtitle.gif" width=260 height=42
border="0" alt="CNET: The Computer Network"><br></td>
<td valign="top">
</td>
<td align="right">
<form method=post action="/esearch/isr/1,249,,00.html?st.cn.fd.nws.cn">
<table border="0" cellPadding="4" cellSpacing="0" width="20%"
bgcolor="#FFCC00">
<tr>
<td noWrap vAlign="top">
<font face="Arial, Helvetica"><b><small>Search:
<small> tips
options</small></small></b></font><br>
<input name="keyword" size="15"> <input name="search"
type="submit" value="Go!"> <br>
<small><small><font face="Arial, Helvetica"><input type="radio"
name="search_level" value="NS" checked ID="test"> all CNET
<input type="radio" name="search_level" value="IN"> the
Web</font></small></small>
</td>
</tr>
</table>
</tr>
</table>
</body></html>
more precisely, it's the measuring of maxElementSize that is incorrect. Here's
an even simpler test case. Again, if you replace "nowrap" cell attribute with
<nobr> tag wrapping cell content, it works correctly.
==============================================================================
<html><body>
<form method=post action="/esearch/isr/1,249,,00.html?st.cn.fd.nws.cn">
<table border="0" cellPadding="4" cellSpacing="0" width="20%" bgcolor="#FFCC00">
<tr>
<td noWrap vAlign="top">
<input name="keyword" size="15"> <input name="search"
type="submit" value="Go!">
</td>
</tr>
</table>
</form>
</body></html>
Since I didn't here any complaints from steve when I fixed this, I'm closing the
bug.
i tried the simpler fix, and when i pressed the submit button, ngt.exe crashed.
it is because
<form method=post action="/esearch/isr/1,249,,00.html?st.cn.fd.nws.cn">
should have the absolute URL:
<form method=post action=
http://www.cnet.com/esearch/isr/1,249,,00.html?st.cn.fd.nws.cn">
is a crash on posting to an invalid URL a known bug? if not,
i'm going to open it tomorrow...
anyway, this bug is now verified on build 98120115 on winnt 4.0
You need to log in
before you can comment on or make changes to this bug.
Description
•