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 (27a812186ff4)

VCS Links

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
<html>
<head>
<script type="text/javascript">

function select(start, startOffset, end, endOffset) {
  var sel = getSelection();
  sel.removeAllRanges();
  var range = document.createRange();
  range.setStart(start, startOffset);
  range.setEnd(end, endOffset);
  sel.addRange(range);
}

function boom() {
  var p = document.body;
  select(p.childNodes[0],0,p.childNodes[0],1);
  sel = getSelection();
  range = sel.getRangeAt(0);
  range.detach();
  range.insertNode(p);
}

</script>
</head>
<body onload="boom()"><span>Hello Kitty</span></body>
</html>