For sure this question is very easy, but I just cannot figure this out.
I\'m using DOMNodeInserted event to detect when a new element is inserted.
I don\'t k
You probably need to initialize a jQuery object around element.target. Try:
element.target
document.addEventListener("DOMNodeInserted", function(event) { alert($(event.target).parent()[0].tagName); });