https://github.com/web-platform-tests/wpt
Raw File
Tip revision: d74cfc00f15092d6491b01b27616520d5beb5c13 authored by Domenic Denicola on 02 April 2018, 18:58:09 UTC
Fix customElements.upgrade() tests for <template>
Tip revision: d74cfc0
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