Fixed an issue with domManip where the incorrect document was being used to create...