Bug 23778 - [Custom]: Avoid difference in "created" callback ordering in parsing vs. cloning.
https://www.w3.org/Bugs/Public/show_bug.cgi?id=23778
Bug 23839 - [Custom]: Template document should not share registry with its document.
https://www.w3.org/Bugs/Public/show_bug.cgi?id=23839