Bug 783129 - Implementation of document.register without shadow DOM support. r=mrbkap