зеркало из https://github.com/mozilla/gecko-dev.git
18 строки
377 B
HTML
18 строки
377 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<body>
|
|
<iframe></iframe>
|
|
</body>
|
|
<script>
|
|
onload = function() {
|
|
var i = document.querySelector("iframe");
|
|
var doc = i.contentDocument;
|
|
doc.body.appendChild(doc.createTextNode("foo"));
|
|
doc.designMode = "on";
|
|
while (doc.body.firstChild) {
|
|
doc.body.firstChild.remove();
|
|
}
|
|
};
|
|
</script>
|
|
</html>
|