avoid < shadow > adjustments if running under ShadowDOM polyfill.