ion selectText()
  {window.getSelection().selectAllChildren(document.querySelector('p'))}
function dropSelection(event)
  {event.target.appendChild(document.createTextNode((event.dataTransfer.dropEffect == effects[i] &amp;&amp; event.dataTransfer.effectAllowed == effects[i])?' PASS ':' FAIL '));
  i = (i + 1)%3;
  selectText();}
function start(event)
  {event.dataTransfer.effectAllowed = effects[i];
  event.dataTransfer.effectAllowed = 'fail';}
</script>
</head>
<body onload="selectText()">
<p ondragstart="