Attempt to upgrade elements in HTMLImports before main document

Related to #103