Redraw problem in table with select box/appendChild




12 years ago
9 years ago


(Reporter: arno_schaefer, Unassigned)


2.0 Branch
Windows XP

Firefox Tracking Flags

(Not tracked)


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



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

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"

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

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
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 ( If you continue to see this issue with the newest firefox and a new profile, then please comment on this bug.
Last Resolved: 9 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.