more accommodations for ShadowDOMShim