cannot create a new element in newly created html5 document, issue reported by Sam MacPherson