DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Mercurial (4a108e94d3e2)

VCS Links

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
<!DOCTYPE html>
<div></div>
<script>
window.onload = function() {
  var div = document.querySelector("div");
  var shadow = div.createShadowRoot();
  shadow.innerHTML = "<p style='display: none'><span><i>x</i></span></p>";
  var p = shadow.lastChild;
  var span = p.firstChild;
  var i = span.firstChild;

  span.style.color = 'blue';
  p.remove();

  document.body.offsetTop;

  shadow.appendChild(p);
  i.style.color = 'red';
};
</script>