Ticket #7072 (closed bug: duplicate)
clone() broken for actions in IE8
|Reported by:||leoshklo||Owned by:|
The following test case is broken when trying to clone a containing a form. For some reason, the html representation of the clone doesn't quote the action attribute of the form tag which leaves the trailing slash to close the form tag destroying the form.
<html> <head> <script src="jquery.js"></script> </head> <body> <div class="simpledialog"> <form action="/analysis/report/5b0ac4dd-1728-4f02-b41f-495e4ade613d/email/" method="post"> <input type="text" name="email" id="id_email" /> </form> </div> </body>
Load this file in IE8 then do the following in the console:
>$('.simpledialog').clone().html() "<FORM method=post action=/analysis/report/5b0ac4dd-1728-4f02-b41f-495e4ade613d/email/><INPUT id=id_email name=email> </FORM>"
I get that result, which effectively destroys the cloned form. Please let me know if you need any more info.
- Status changed from closed to reopened
- Resolution invalid deleted