avoid document.body.firstChild for ShadowDOM polyfill compat