eval inline scripts, migrate inline styles to main document, more calls to upgradeElements