Bug 976318 - Template element contents owner document should be an inert template document. r=mrbkap