https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 0032bc09b92ec14a4c3ec19b161586484ac8a995 authored by Simon Pieters on 10 June 2018, 10:28:37 UTC
Add functional selftests, set status to ERROR when mixing single_test and test
Tip revision: 0032bc0
innerhtml-06.html
<!DOCTYPE html>
<html>
<head>
<title>math in html: innerHTML</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<h1>math in html: innerHTML</h1>
<div id="log"></div>
<div style="display:none">
<div id="d1"><math><mi>x</mi></math></div>
</div>
<script>
test(function() {
  var math = document.getElementById("d1").firstChild;
  assert_equals(math.innerHTML, "<mi>x</mi>");
},"innerHTML defined on math.");
</script>
back to top