1 2 3 4 5 6 7 8 9
<!doctype html> <title>innerHTML test</title> <div id="test">Fail</div> <script src=asserts.js></script> <script> const div = document.getElementById("test"); assert_equals(div.outerHTML, '<div id="test">Fail</div>'); div.textContent = "Success"; </script>