You can not create a DocumentFragment that contains html, head, or body. They are all striped off. See the console.log.