blob: 5c30bc52b8d1098a8c6d24a29f48f75acc2af759 (
plain) (
tree)
|
|
<!doctype html>
<title>innerHTML test</title>
<div id="test">Fail</div>
<script>
const div = document.getElementById("test");
if (div.outerHTML != '<div id="test">Fail</div>')
throw new TypeError("invalid outerHTML " + div.outerHTML);
div.textContent = "Success";
</script>
|