Closed Bug 1180373 Opened 10 years ago Closed 10 years ago

Mutation Observer doesn't recognize added noded in previously added nodes

Categories

(Core :: DOM: Core & HTML, defect)

39 Branch
x86_64
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: stefan.hahn, Unassigned)

References

()

Details

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:39.0) Gecko/20100101 Firefox/39.0 Build ID: 20150630154324 Steps to reproduce: Test case: http://jsfiddle.net/cn8cznqb/2/ First, you add a Mutation Observer to a given element. This mutation observer is configured to check for mutations in the child tree as well. For testing purposes all other mutations than node addition are not considered, maybe you have to check removal, character and attribute mutations as well. Second, you programmatically add a child to the node the observer is attached to. Third, you programmatcially add a child to the node added in step two. Actual results: The observer fires as expected in the second step. You get everything you need and everything seems find. But the observer doesn't fire in the third step. Expected results: The observer should fire in the third step as well, as the observer is configured to check for mutations in the child tree as well.
OS: Unspecified → Windows 7
Hardware: Unspecified → x86_64
Component: General → DOM: Core & HTML
shoud be configured |subtree: true| as well.
Yeah, you need subtree: true
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.