| <p id="description">This tests detaching a frame while clicking on an anchor element with ping attribute in the frame.<br> |
| WebKit should not crash.</p> |
| var iframe = document.createElement('iframe'); |
| document.body.appendChild(iframe); |
| var anchorElement = iframe.contentDocument.createElement('a'); |
| anchorElement.setAttribute('href', 'javascript:parent.remove(event);'); |
| anchorElement.setAttribute('ping', 'https://webkit.org/'); |
| iframe.contentDocument.body.appendChild(anchorElement); |
| iframe.parentNode.removeChild(iframe); |
| document.write('PASS. WebKit did not crash.'); |