Bug 856140 - Sync our document.registerElement implementation to the current version of the spec. r=mrbkap