{"action":"created","issue":{"url":"https://api.github.com/repos/whatwg/dom/issues/121","labels_url":"https://api.github.com/repos/whatwg/dom/issues/121/labels{/name}","comments_url":"https://api.github.com/repos/whatwg/dom/issues/121/comments","events_url":"https://api.github.com/repos/whatwg/dom/issues/121/events","html_url":"https://github.com/whatwg/dom/pull/121","id":119109540,"number":121,"title":"Fix the adoption step when replacing node by child into parent","user":{"login":"nox","id":123095,"avatar_url":"https://avatars.githubusercontent.com/u/123095?v=3","gravatar_id":"","url":"https://api.github.com/users/nox","html_url":"https://github.com/nox","followers_url":"https://api.github.com/users/nox/followers","following_url":"https://api.github.com/users/nox/following{/other_user}","gists_url":"https://api.github.com/users/nox/gists{/gist_id}","starred_url":"https://api.github.com/users/nox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nox/subscriptions","organizations_url":"https://api.github.com/users/nox/orgs","repos_url":"https://api.github.com/users/nox/repos","events_url":"https://api.github.com/users/nox/events{/privacy}","received_events_url":"https://api.github.com/users/nox/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2015-11-26T23:16:21Z","updated_at":"2015-11-27T12:34:14Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/whatwg/dom/pulls/121","html_url":"https://github.com/whatwg/dom/pull/121","diff_url":"https://github.com/whatwg/dom/pull/121.diff","patch_url":"https://github.com/whatwg/dom/pull/121.patch"},"body":"If the replacing node is the replaced child, the node doesn't need and\r\nshouldn't be adopted into the parent's document because it removes it from\r\nthe parent, which is already done in the very next step.\r\n\r\nThe adoption step is made conditional and not the removing one to not\r\nartificially increase the number of mutation records being queued during\r\nthe replacing as a whole."},"comment":{"url":"https://api.github.com/repos/whatwg/dom/issues/comments/160130891","html_url":"https://github.com/whatwg/dom/pull/121#issuecomment-160130891","issue_url":"https://api.github.com/repos/whatwg/dom/issues/121","id":160130891,"user":{"login":"foolip","id":498917,"avatar_url":"https://avatars.githubusercontent.com/u/498917?v=3","gravatar_id":"","url":"https://api.github.com/users/foolip","html_url":"https://github.com/foolip","followers_url":"https://api.github.com/users/foolip/followers","following_url":"https://api.github.com/users/foolip/following{/other_user}","gists_url":"https://api.github.com/users/foolip/gists{/gist_id}","starred_url":"https://api.github.com/users/foolip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/foolip/subscriptions","organizations_url":"https://api.github.com/users/foolip/orgs","repos_url":"https://api.github.com/users/foolip/repos","events_url":"https://api.github.com/users/foolip/events{/privacy}","received_events_url":"https://api.github.com/users/foolip/received_events","type":"User","site_admin":false},"created_at":"2015-11-27T12:34:13Z","updated_at":"2015-11-27T12:34:13Z","body":"> the HTMLCollection instance bound to the parent's childNodes IDL attribute can easily be cached and updated by piggy-backing the mutation observers machinery\r\n\r\nIs this actually true? The mutation observers are notified after the change in HTMLCollection should be observable."}}