| <script src="../../resources/js-test.js"></script> |
| window.jsTestIsAsync = true; |
| output.value = "test value"; |
| output.appendChild(inserted_div); |
| document.getElementById("output").addEventListener('DOMSubtreeModified', function() { |
| for(var i=0; i<20; i++) { |
| form.appendChild(document.createElement("input")); |
| testPassed("Passes if we do not crash."); |
| <body onload="runTest()"> |
| <div id="inserted_div">foo</div> |
| <form id="form" onchange="eventhandler()"> |
| <input type="text" value="foo"> |
| <output id="output" oninput="eventhandler()"></output> |
| <input type="text" value="foo"> |