Closed
Bug 19212
Opened 25 years ago
Closed 25 years ago
Can't add content to empty table.
Categories
(Core :: DOM: Core & HTML, defect, P3)
Core
DOM: Core & HTML
Tracking
()
VERIFIED
FIXED
People
(Reporter: hyp-x, Assigned: vidur)
Details
(Keywords: testcase, Whiteboard: [TESTCASE][HAVE FIX])
Attachments
(2 files)
Version tested:
1999-11-16-08-M12 on Win98SE
How to reproduce:
Load the following testcase. (I'll attach it as well.)
Expected result:
You should see a table containing one cell, with text "Hello world!"
Actual results:
Page looks like empty.
Regression:
Works as expected in IE5.
---
<html><body>
<table border=5 id="mytable"></table>
<script>
var t = document.getElementById("mytable");
var tr = t.insertRow(0);
var td = tr.insertCell(0);
td.appendChild(document.createTextNode("Hello world!"));
</script>
</body></html>
Reporter | ||
Comment 1•25 years ago
|
||
Reporter | ||
Updated•25 years ago
|
Whiteboard: [TESTCASE]
Assignee | ||
Comment 2•25 years ago
|
||
In an attempt to get my bug list in order again, marking all the bugs I have
currently as ASSIGNED.
Comment 3•25 years ago
|
||
Bulk moving [testcase] code to new testcase keyword. Sorry for the spam!
Keywords: testcase
Comment 4•25 years ago
|
||
update:
tested on 1/25 builds and changed platform/os to all/all
Also, this bug does not happen if rows already exist in the table, even empty
rows.
OS: Windows 98 → All
Hardware: PC → All
Assignee | ||
Comment 5•25 years ago
|
||
A simple problem in table content code (which from the looks of it, could do
with a rewrite). I have a fix and will check in at the next opportunity.
Whiteboard: [TESTCASE] → [TESTCASE][HAVE FIX]
Assignee | ||
Comment 6•25 years ago
|
||
Fixed on 1/26/2000.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Comment 7•25 years ago
|
||
I'm reopening because I discovered you still can't add content to an empty table
after the page has finished loading. The test case I am attaching next
demonstrates this: it attempts to add content to two tables, the first time
while loading and the second time after loading is complete (via the onLoad
event handler). The first attempt succeeds, the second attempt fails.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 8•25 years ago
|
||
Assignee | ||
Comment 9•25 years ago
|
||
Ack! You're right. Fixed again on 2/7/2000. A notification wasn't being done for
the the TBODY that was added as a result of insertRow.
Status: REOPENED → RESOLVED
Closed: 25 years ago → 25 years ago
Resolution: --- → FIXED
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•