PR #439 made Sizzle crash earlier on a documentElement-missing document. However, we want selection to work on nodes inside of a <template> element for which ownerDocument will point to a document fragment with a nulldocumentElement. As @gibson042 said in #452:
We discussed in-meeting and had rough consensus that the right behavior was to stop at a disconnected fragment but to traverse up through a fragment's <template> host when one exists. But unfortunately, it seems difficult and maybe impossible to differentiate the two. My ideal change would instead be to tolerate null documentElement, but more changes will be required for that.
The text was updated successfully, but these errors were encountered:
PR #439 made Sizzle crash earlier on a
documentElement-missingdocument. However, we want selection to work on nodes inside of a<template>element for whichownerDocumentwill point to a document fragment with anulldocumentElement. As @gibson042 said in #452:The text was updated successfully, but these errors were encountered: