support: better check on document than document.documentElement
dom/node: add polyfills for #content
spec: fix some node specs that were failing because of different parsing