I am having trouble getting the parent node of a
element which triggered a
What I am trying to achieve is to recursively match its parent to a certain class, but the
Here is the DOM tree:
The path property of the
seems to capture the hierarchy but it is not standard
I figured out why this is happening.
element was replaced by some new element upon pasting by the first event handler, and in my 2nd event handler(this one that I am having issue with),
is no longer in DOM tree.