when HTMLImports is available, make use of its import parsing hook to upgrade import documents.