Redraw problem in table with select box/appendChild

RESOLVED INCOMPLETE

Status

()

RESOLVED INCOMPLETE
11 years ago
8 years ago

People

(Reporter: arno_schaefer, Unassigned)

Tracking

2.0 Branch
x86
Windows XP
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [CLOSEME 2010-07-30])

(Reporter)

Description

11 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.7) Gecko/20070914 Firefox/2.0.0.7
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.7) Gecko/20070914 Firefox/2.0.0.7

The table is not redrawn correctly after an appendChild() in the same table row in which an onchange event from a select box is received.

Example code:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html>
<head>
<title>test</title>
<script type="text/javascript" language="JavaScript">
function addvalue () {
	target = document.getElementById ("foo");
	target.appendChild (document.createTextNode ("some text"));
	target.appendChild (document.createElement ("br"));
}
</script>
</head>
<body>
	<table border="1">
		<tr>
			<td>
				<form action="#" method="post">
					<select name="test1" onchange="addvalue();">
						<option value="1">foo</option>
						<option value="2">bar</option>
					</select>
				</form>
			</td>
			<td width="100" id="foo">
			</td>
		</tr>
		<tr>
			<td>
				<form action="#" method="post">
					<select name="test2" onchange="addvalue();">
						<option value="1">foo</option>
						<option value="2">bar</option>
					</select>
				</form>
			</td>
			<td>
			</td>
		</tr>
	</table>
</body>
</html>


Reproducible: Always

Steps to Reproduce:
1. load example page
2. change the upper select box

Actual Results:  
Text is added to table cell, but the table is not expanded to accommodate the changed content of the cell, added text is written over the table boundary.


Expected Results:  
Table expands as required.

Is there a workaround?
This bug was originally reported on Firefox 2.x or older, which is no longer supported and will not be receiving any more updates. I strongly suggest that you update to Firefox 3.6.6 or later, update your plugins (flash, adobe, etc.), and retest in a new profile. If you still see the issue with the updated Firefox, please post here. Otherwise, please close as RESOLVED > WORKSFORME
http://www.mozilla.com
http://support.mozilla.com/kb/Managing+profiles
http://support.mozilla.com/kb/Safe+mode
Whiteboard: [CLOSEME 2010-07-30]
Version: unspecified → 2.0 Branch
No reply, INCOMPLETE. Please retest with Firefox 3.6.8 or later and a new profile (http://support.mozilla.com/kb/Managing+profiles). If you continue to see this issue with the newest firefox and a new profile, then please comment on this bug.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 8 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.