ShadowDOMPolyfill can return 'null' for firstElementChild where platform returns 'undefined' ... loosen value check
make sure forSubtree includes shadow-root direclty on input node
deep search upgraded nodes for insertions
white-space changes