- From: ikeyan <notifications@github.com>
- Date: Tue, 21 May 2019 16:37:33 -0700
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 21 May 2019 23:37:55 UTC
@trusktr The problem is, > callbacks (and records) for that target and > future callbacks and records in place for other targets can have nodes in common. For example, if a node A is an ancestor of a node B like in this HTML, ```html <div> = A <ul> <li></li> = B </div> </div> ``` and if you observe both A and B, how unobserve() should behave? ```javascript observer.observe(A, {subtree: true, childList: true}); observer.observe(B, {attributes: true}); // Now if someone add a class attribute to B, // observer has a queued item {target: B, attributeName: "class"} observer.unobserve(B); ``` I think these behaviors are mentioned in this issue. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/whatwg/dom/issues/126#issuecomment-494597868
Received on Tuesday, 21 May 2019 23:37:55 UTC