code: function() {
  		// "Let target be the body element of the context object."
  		var target = document.body;
  
  		// "If target is null, let target be the context object's
  		// documentElement."
  		if (!target) {
  			target = document.documentElement;
  		}
  
  		// "If target is null, call getSelection() on the context object, and
  		// call removeAllRanges() on the result."
  		if (!target) {
  			getSelection().removeAllRanges();
  
  		// "Otherwise, call getSelection() on the context object, and call
  		// selectAllChildren(target) on the result."
  		} else {
  			getSelection().selectAllChildren(target);
  		}
  	}
docs: Note, this ignores the whole globalRange/getActiveRange() thing and works with actual selections.  Not suitable for autoimplementation.html.