@mhevery  It actually does happen :) in case element is within shadowDom. the top element in the shadow dom will have null parrent and will have parrentNode set to documentFragment.