When applying document.elementFromPoint on point(x,y) which points to an element somewhere inside a documentFragment, it returns the container element. For example:
<div id="container">
<div id="my_documentfragment">
<span> something </span>
</div>
</div>
Expected Result: If (x,y) are pointing to #my_documentfragment, document.elementFromPoint(x,y) it should return #my_documentfragment.
Actual Result: returns #container. the container of the document fragment
- What's the alternative to document.elementFromPoint(x,y) when some parts of the page are documentFragments?
- What's the alternative to jquery.parents() on an element that is part of a documentFragment