| James Graham | 98ea7ae | 2016-05-09 21:36:50 | [diff] [blame] | 1 | <!DOCTYPE html> |
| 2 | <html> |
| 3 | <head> |
| 4 | <title>math in html: innerHTML</title> |
| 5 | <script src="/resources/testharness.js"></script> |
| 6 | <script src="/resources/testharnessreport.js"></script> |
| 7 | </head> |
| 8 | <body> |
| 9 | <h1>math in html: innerHTML</h1> |
| 10 | <div id="log"></div> |
| 11 | <div style="display:none"> |
| 12 | <div id="d1"><math><mi>x</mi></math></div> |
| 13 | </div> |
| 14 | <script> |
| 15 | test(function() { |
| 16 | var math = document.getElementById("d1").firstChild; |
| 17 | assert_equals(math.innerHTML, "<mi>x</mi>"); |
| 18 | },"innerHTML defined on math."); |
| 19 | </script> |