blob: 69cb999f8af1dfd33ceff30d1b2765aaa98e35be [file] [log] [blame]
<html>
<head>
<script>
var count = 0;
document.addEventListener("DOMNodeRemoved", function () {
count++;
if (count < 2) {
var src = event.srcElement;
document.designMode = "on";
src.parentNode.replaceChild(document.head, src);
}
}, false);
window.onload = function () {
var selection = window.getSelection();
document.execCommand("SelectAll", false)
selection.deleteFromDocument();
window.parent.postMessage("FINISH", "*");
};
</script>
</head>
<body>
<div>
A
<select></select>
</div>
</body>
</html>