JSFiddle - React, Tailwind, and code Playground
by dmethvin
HTML
<p>The is a test page for <a href="http://bugs.jquery.com/ticket/12455" target="_blank">http://bugs.jquery.com/ticket/12455</a></p>
<p>Bug: In ie8 & 9 standard mode, use jquery load a page, the page contain a text input without a form.
When press 'Enter' key in the text input, the load method will be triggered again.</p>
<button id="load-page-into-page">Ajax load html code into page element.</button>
<div id="page" style="border: 1px solid; padding: 20px;"></div>
JavaScript
$('#load-page-into-page').click(function() {
$('#page').load('/echo/html/', {
html : '<script type="text/javascript">alert("ajax loaded.");<\/script><input type="text" value="Press Enter key here in ie8 & 9 to trigger the bug" style="width: 400px;" />'
});
});