Potential IE7 support for createDocument (not yet used)