Closed
Bug 642890
Opened 15 years ago
Closed 15 years ago
table structure inserted into div using innerHTML is reformatted with table structure extracted from cell contents (which follow)
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
INCOMPLETE
People
(Reporter: angus, Unassigned)
Details
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:2.0b7) Gecko/20100101 Firefox/4.0b7
Build Identifier: Mozilla/5.0 (Windows NT 5.1; rv:2.0b7) Gecko/20100101 Firefox/4.0b7
<table><tr><td><div id="x1"></div></td></tr></table>
document.getElementById("x1").innerHTML="<table><tr><td>rhubarb</td><td>more rhubarb</td></tr></table>";
is re-formatted by FF4b7 as:
<table><tbody><tr><td><div id='x1'><table><tbody><tr><td></td></tr></tbody></table>rhubarb more rhubarb</div></td></tr></tbody></table>
This only occurs in FF4.
FF3x works correctly.
I have shown the div inside another table as that is how the bug occurred, however I do not think that it is a necessary factor.
Reproducible: Always
Steps to Reproduce:
1.create a div:
<table><tr><td><div id="x1"></div></td></tr></table>
2.replace the contents with a javascript generated table:
document.getElementById("x1").innerHTML="<table><tr><td>RHUBARB</td><td>MORE RHUBARB</td></tr></table>";
3.
Actual Results:
<table><tbody><tr><td><div id='x1'><table><tbody><tr><td></td></tr></tbody></table>RHUBARB MORE RHUBARB</div></td></tr></tbody></table>
Expected Results:
<table><tbody><tr><td><div id='x1'><table><tbody><tr><td>RHUBARB</td><td>MORE RHUBARB</td></tr></tbody></table></div></td></tr></tbody></table>
The cell contents are simplified here.
The effect was more noticeable in reality because there were more cells and the contents of each cell included a <br> tag; so the effect was to have the text travel down the page rather than across.
Only happens in FF4b7.
FF3x is rendered correctly.
Comment 1•15 years ago
|
||
Reporter -> Are you still experiencing this issue with the latest version of Firefox 4? Does the issue occur with the latest nightly? http://nightly.mozilla.org/
Version: unspecified → 4.0 Branch
Comment 2•15 years ago
|
||
Closing bug as Incomplete - if you are still experiencing this issue or have more information to provide feel free to post back here and we can re-open the bug. You can also get assistance by visiting the Firefox help site -> http://support.mozilla.com/en-US/kb/Ask+a+question
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → INCOMPLETE
You need to log in
before you can comment on or make changes to this bug.
Description
•