Closed Bug 152892 Opened 22 years ago Closed 22 years ago

Form tag bracketing td element causes rendering glitch

Categories

(Core :: Layout, defect)

x86
All
defect
Not set
minor

Tracking

()

RESOLVED DUPLICATE of bug 149282

People

(Reporter: ericl, Assigned: rods)

Details

Attachments

(4 files)

Rotten Tomatoes (http://www.rottentomatoes.com) has an odd bit in their page
where they bracket a <td> element with a <form> element instead of enclosing the
<form> element within the <td>.  In build 2002061104, it causes that cell to be
separated from the others by a gap and causes subsequent cells to render in the
wrong rows.  In older builds (200203104) renders the page acceptably.

The current code (in simplified form) is this:
<table>
  <tr>
...
    <form>
      <td>
        <input>
      </td>
     </form>
...
   </tr>
...
</table>

This is probably improper HTML anyway (evangelism?), but it does render okay in
IE and older builds of Moz, so perhaps it's worth hunting down.
Attached file Simplified Test Case
Using the simplified test-case, I've refined the description of the problem.
It looks like the above case causes the renderer to fill in an extra contentless
cell prior to the cell with the input.  Thus it causes all subsequent rows to
squish leftward to accomodate the "extra" cell on the first row.  On the Rotten
Tomatoes site, this appears to be made worse by the background image in the
input cell.
WFM Win2k 2002061712  Fixed on trunk?
Dupe of bug 149282, which was fixed on the trunk somewhere around 2002061404...
does indeed look like a dupe...

*** This bug has been marked as a duplicate of 149282 ***
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Component: HTML Form Controls → Layout
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: