Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Chrome developer tools. DOM subtree modification breakpoint?

Will this break-point will only be invoked if nodes in sub-tree is added/removed, and not if they are simply modified?

As testing I tried to add class with JS to sub-tree elements, and the breakpoint did not invoke.

So just want to be sure, that only thing that will trigger this particular break-point is only addition/removal of sub-nodes, and not the modification of any f they're attributes or anything else for that matter, can anyone confirm this?

like image 637
galdikas Avatar asked Dec 18 '12 12:12

galdikas


1 Answers

Subtree modifications are node insertions and removals in the DOM [sub]tree rooted at the given node.

In order to break on the class attribute modifications you need to use... know what? Break on Attribute Modifications! :-)

like image 77
Alexander Pavlov Avatar answered Sep 16 '22 11:09

Alexander Pavlov