Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #7429 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

Element#replace doesn't work with table related elements in IE

Reported by: Ernst Assigned to: Tobie
Priority: normal Milestone: 1.x
Component: Prototype Version: edge
Severity: normal Keywords: 1.5.2
Cc:

Description

This test results in an unknow runtime error in MSIE 7 on windows XP with SP2.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML>

<HEAD>

<script type="text/javascript" src="prototype.js"></script>

<script type="text/javascript" src="base.js"></script> <script type="text/javascript" src="string.js"></script>

<script type="text/javascript" src="enumerable.js"></script> <script type="text/javascript" src="array.js"></script> <script type="text/javascript" src="hash.js"></script> <script type="text/javascript" src="range.js"></script>

<script type="text/javascript" src="ajax.js"></script> <script type="text/javascript" src="dom.js"></script> <script type="text/javascript" src="selector.js"></script> <script type="text/javascript" src="form.js"></script> <script type="text/javascript" src="event.js"></script> <script type="text/javascript" src="position.js"></script>

</HEAD>

<BODY>

<table border="1"> <tr id="row1">

<td> doe eens weggaan! </td>

</tr> </table>

<script>

function ReplaceTest() {

Element.replace('row1','<tr><td>ok </td></tr>');

}

</script>

<input type="button" onClick="ReplaceTest()" value="hit me"/>

</BODY>

</HTML>

Change History

05/03/07 02:10:28 changed by Tobie

  • keywords changed from replace MSIE tr unknow runtime error to 1.5.2.
  • owner changed from sam to Tobie.
  • summary changed from Replace TR element in msie to Element#replace doesn't work with table related elements in IE.

07/23/07 00:47:37 changed by Tobie

  • status changed from new to closed.
  • resolution set to duplicate.

superseded by #9060.

07/24/07 18:52:20 changed by sam

  • resolution changed from duplicate to fixed.

(In [7226]) prototype: Improvements for Element#replace, Element#update and Element#insert. Closes #7429, #9060.