| <script type="text/javascript"> |
| var a = document.getElementById('a'); |
| var b = document.getElementById('b'); |
| var r = document.getElementById('result'); |
| document.body.appendChild(b); |
| document.body.removeChild(a); |
| var l = b.elements.length; |
| result.innerText = l == 0 ? 'PASS' : 'FAIL: ' + l; |
| This tests for a regression against |
| <i><a href="https://bugs.webkit.org/show_bug.cgi?id=5926">https://bugs.webkit.org/show_bug.cgi?id=5926</a> |
| Assertion failure in HTMLGenericFormElementImpl::removedFromTree</i>. |
| Test result: <span id="result">FAIL: didn't finish</span> |
| <input type="submit" value="Log In"> |