d=getElementsByTagName>
  var div1 = document.createElement('div');
  div1.innerHTML = "  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>";
  testing.expectEqual(1, div1.getElementsByTagName('a').length);
</script>

<script id=outerHTML>
  let fc = document.createElement('div')
  fc.innerHTML = '<script><\/script>';
  testing.expectEqual('<div><script><\/script></div>', fc.outerHTML);

  fc = document.createElement('div')
  fc.innerHTML = '<script><\/script><p>hello</p>';
  testing.expectEq