Bug 805475: add the ability to switch to active element in the document; r=jgriffin