{"action":"created","comment":{"url":"https://api.github.com/repos/slightlyoff/IntersectionObserver/pulls/comments/41570559","id":41570559,"diff_hunk":"@@ -270,103 +299,102 @@ This callback will be invoked when there are changes to <i>target</i>'s intersec\n             This is a {{length}} value.\n     </div>\n \n-<h2 id='3-processing-model'><dfn>Processing Model</dfn></h3>\n-    This section outlines the steps the user agent MUST take when implementing\n-    the {{Intersection Observer}} API.\n+<h2 id='intersection-observer-processing-model'><dfn>Processing Model</dfn></h3>\n+    This section outlines the steps the user agent must take when implementing\n+    the <a>Intersection Observer</a> API.\n \n-<h3 id='3-1-defines'>Internal Slot Definitions</h2>\n+<h3 id='defines'>Internal Slot Definitions</h2>\n \n-<h4 id='3-1-1-document'>Document</h4>\n-    {{Document}} objects have internal\n-    <dfn attribute for=Document>\\[[PendingIntersectionObserverCallbacks]]</dfn>\n-    and <dfn attribute for=Document>\\[[RegisteredIntersectionObservers]]</dfn>\n-    slots, which are initialized to empty lists.\n+<h4 id='browsing-contexts-defines'>Browsing Contexts</h4>\n+    Each <a>unit of related similar-origin browsing contexts</a> has an\n+    <dfn for=\"browsing context\">IntersectionObserverTaskQueued</dfn> flag which\n+    is initialized to false and an <dfn for=\"browsing context\">\n+    IntersectionObservers</dfn> list which is initially empty.\n \n-<h4 id='3-1-2-element'>Element</h4>\n+<h4 id='element-private-slots'>Element</h4>\n     {{Element}} objects have an internal\n     <dfn attribute for=Element>\\[[RegisteredIntersectionObservers]]</dfn> slot,\n     which is initialized to an empty list and an internal\n     <dfn attribute for=Element>\\[[PreviousIntersectionRect]]</dfn>\n     slot, which is initialized to null.\n \n-<h4 id='3-1-3-intersection-observer'>IntersectionObserver</h4>\n+<h4 id='intersection-observer-private-slots'>IntersectionObserver</h4>\n     {{IntersectionObserver}} objects have internal\n     <dfn attribute for=IntersectionObserver>\\[[QueuedEntries]]</dfn> and\n     <dfn attribute for=IntersectionObserver>\\[[ObservationTargets]]</dfn> slots,\n     which are initialized to empty lists and internal\n+    <dfn attribute for=IntersectionObserver>\\[[callback]]</dfn>,\n     <dfn attribute for=IntersectionObserver>\\[[root]]</dfn>,\n     <dfn attribute for=IntersectionObserver>\\[[rootMargin]]</dfn> and\n     <dfn attribute for=IntersectionObserver>\\[[threshold]]</dfn> slots, which\n-    are initialized to the corresponding attributes of the {{options}} parameter\n-    passed to <a>IntersectionObserver(callback, options)</a>.\n+    are initialized by <a>IntersectionObserver(callback, options)</a>.\n \n-<h3 id='3-2-algorithms'>Algorithms</h2>\n+<h3 id='algorithms'>Algorithms</h2>\n \n-<h4 id='3-2-1-queue-intersection-observer-callback'>\n-<dfn>Queue an IntersectionObserverCallback</dfn>\n+<h4 id='queue-intersection-observer-task'>Queue an Intersection Observer Task\n </h4>\n-    To <a>queue an IntersectionObserverCallback</a> for <i>observer</i>, run\n-    these steps:\n+    To <dfn>queue an intersection observer task</dfn> for a <a>unit of related\n+    similar-origin browsing contexts</a> <i>unit</i>, run these steps:\n     <ol>\n-        <li>If <i>Document</i>'s internal\n-            {{[[PendingIntersectionObserverCallbacks]]}} slot contains\n-            <i>observer</i>, return.</li>\n-        <li>Append <i>observer</i> to <i>Document</i>'s internal\n-            {{[[PendingIntersectionObserverCallbacks]]}} slot.</li>\n-        <li>Post a task to <a>invoke an IntersectionObserverCallback</a>, or\n-            enqueue a task to <a>invoke an IntersectionObserverCallback</a> in\n-            <i>Document</i>'s\n-            <a href=\"https://w3c.github.io/requestidlecallback/#dfn-list-of-idle-request-callbacks\">\n-            list of idle request callbacks</a> with an appropriate\n+        <li>If <i>unit</i>'s <a>IntersectionObserverTaskQueued</a> flag is set\n+            to true, return.</li>\n+        <li>Set <i>unit<\\i>'s <a>IntersectionObserverTaskQueued</a> flag to","path":"index.bs","position":260,"original_position":260,"commit_id":"0be68d9674154ea1ec4e4f9b4980a3279ac279c7","original_commit_id":"0be68d9674154ea1ec4e4f9b4980a3279ac279c7","user":{"login":"mpb","id":8249221,"avatar_url":"https://avatars.githubusercontent.com/u/8249221?v=3","gravatar_id":"","url":"https://api.github.com/users/mpb","html_url":"https://github.com/mpb","followers_url":"https://api.github.com/users/mpb/followers","following_url":"https://api.github.com/users/mpb/following{/other_user}","gists_url":"https://api.github.com/users/mpb/gists{/gist_id}","starred_url":"https://api.github.com/users/mpb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mpb/subscriptions","organizations_url":"https://api.github.com/users/mpb/orgs","repos_url":"https://api.github.com/users/mpb/repos","events_url":"https://api.github.com/users/mpb/events{/privacy}","received_events_url":"https://api.github.com/users/mpb/received_events","type":"User","site_admin":false},"body":"Done.","created_at":"2015-10-08T21:20:19Z","updated_at":"2015-10-08T21:20:19Z","html_url":"https://github.com/slightlyoff/IntersectionObserver/pull/47#discussion_r41570559","pull_request_url":"https://api.github.com/repos/slightlyoff/IntersectionObserver/pulls/47","_links":{"self":{"href":"https://api.github.com/repos/slightlyoff/IntersectionObserver/pulls/comments/41570559"},"html":{"href":"https://github.com/slightlyoff/IntersectionObserver/pull/47#discussion_r41570559"},"pull_request":{"href":"https://api.github.com/repos/slightlyoff/IntersectionObserver/pulls/47"}}},"pull_request":{"url":"https://api.github.com/repos/slightlyoff/IntersectionObserver/pulls/47","id":47096709,"html_url":"https://github.com/slightlyoff/IntersectionObserver/pull/47","diff_url":"https://github.com/slightlyoff/IntersectionObserver/pull/47.diff","patch_url":"https://github.com/slightlyoff/IntersectionObserver/pull/47.patch","issue_url":"https://api.github.com/repos/slightlyoff/IntersectionObserver/issues/47","number":47,"state":"open","locked":false,"title":"Processing model re-write based on MutationObserver.","user":{"login":"mpb","id":8249221,"avatar_url":"https://avatars.githubusercontent.com/u/8249221?v=3","gravatar_id":"","url":"https://api.github.com/users/mpb","html_url":"https://github.com/mpb","followers_url":"https://api.github.com/users/mpb/followers","following_url":"https://api.github.com/users/mpb/following{/other_user}","gists_url":"https://api.github.com/users/mpb/gists{/gist_id}","starred_url":"https://api.github.com/users/mpb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mpb/subscriptions","organizations_url":"https://api.github.com/users/mpb/orgs","repos_url":"https://api.github.com/users/mpb/repos","events_url":"https://api.github.com/users/mpb/events{/privacy}","received_events_url":"https://api.github.com/users/mpb/received_events","type":"User","site_admin":false},"body":"Fixes #35 \r\nFixes #43 ","created_at":"2015-10-07T23:46:00Z","updated_at":"2015-10-08T21:20:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bd0a85b7406e5cbe02150099e4d3901f7da58c8a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/slightlyoff/IntersectionObserver/pulls/47/commits","review_comments_url":"https://api.github.com/repos/slightlyoff/IntersectionObserver/pulls/47/comments","review_comment_url":"https://api.github.com/repos/slightlyoff/IntersectionObserver/pulls/comments{/number}","comments_url":"https://api.github.com/repos/slightlyoff/IntersectionObserver/issues/47/comments","statuses_url":"https://api.github.com/repos/slightlyoff/IntersectionObserver/statuses/0be68d9674154ea1ec4e4f9b4980a3279ac279c7","head":{"label":"slightlyoff:processing-model","ref":"processing-model","sha":"0be68d9674154ea1ec4e4f9b4980a3279ac279c7","user":{"login":"slightlyoff","id":97331,"avatar_url":"https://avatars.githubusercontent.com/u/97331?v=3","gravatar_id":"","url":"https://api.github.com/users/slightlyoff","html_url":"https://github.com/slightlyoff","followers_url":"https://api.github.com/users/slightlyoff/followers","following_url":"https://api.github.com/users/slightlyoff/following{/other_user}","gists_url":"https://api.github.com/users/slightlyoff/gists{/gist_id}","starred_url":"https://api.github.com/users/slightlyoff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slightlyoff/subscriptions","organizations_url":"https://api.github.com/users/slightlyoff/orgs","repos_url":"https://api.github.com/users/slightlyoff/repos","events_url":"https://api.github.com/users/slightlyoff/events{/privacy}","received_events_url":"https://api.github.com/users/slightlyoff/received_events","type":"User","site_admin":false},"repo":{"id":37750203,"name":"IntersectionObserver","full_name":"slightlyoff/IntersectionObserver","owner":{"login":"slightlyoff","id":97331,"avatar_url":"https://avatars.githubusercontent.com/u/97331?v=3","gravatar_id":"","url":"https://api.github.com/users/slightlyoff","html_url":"https://github.com/slightlyoff","followers_url":"https://api.github.com/users/slightlyoff/followers","following_url":"https://api.github.com/users/slightlyoff/following{/other_user}","gists_url":"https://api.github.com/users/slightlyoff/gists{/gist_id}","starred_url":"https://api.github.com/users/slightlyoff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slightlyoff/subscriptions","organizations_url":"https://api.github.com/users/slightlyoff/orgs","repos_url":"https://api.github.com/users/slightlyoff/repos","events_url":"https://api.github.com/users/slightlyoff/events{/privacy}","received_events_url":"https://api.github.com/users/slightlyoff/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/slightlyoff/IntersectionObserver","description":"API Sketch for Intersection Observers","fork":false,"url":"https://api.github.com/repos/slightlyoff/IntersectionObserver","forks_url":"https://api.github.com/repos/slightlyoff/IntersectionObserver/forks","keys_url":"https://api.github.com/repos/slightlyoff/IntersectionObserver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/slightlyoff/IntersectionObserver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/slightlyoff/IntersectionObserver/teams","hooks_url":"https://api.github.com/repos/slightlyoff/IntersectionObserver/hooks","issue_events_url":"https://api.github.com/repos/slightlyoff/IntersectionObserver/issues/events{/number}","events_url":"https://api.github.com/repos/slightlyoff/IntersectionObserver/events","assignees_url":"https://api.github.com/repos/slightlyoff/IntersectionObserver/assignees{/user}","branches_url":"https://api.github.com/repos/slightlyoff/IntersectionObserver/branches{/branch}","tags_url":"https://api.github.com/repos/slightlyoff/IntersectionObserver/tags","blobs_url":"https://api.github.com/repos/slightlyoff/IntersectionObserver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/slightlyoff/IntersectionObserver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/slightlyoff/IntersectionObserver/git/refs{/sha}","trees_url":"https://api.github.com/repos/slightlyoff/IntersectionObserver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/slightlyoff/IntersectionObserver/statuses/{sha}","languages_url":"https://api.github.com/repos/slightlyoff/IntersectionObserver/languages","stargazers_url":"https://api.github.com/repos/slightlyoff/IntersectionObserver/stargazers","contributors_url":"https://api.github.com/repos/slightlyoff/IntersectionObserver/contributors","subscribers_url":"https://api.github.com/repos/slightlyoff/IntersectionObserver/subscribers","subscription_url":"https://api.github.com/repos/slightlyoff/IntersectionObserver/subscription","commits_url":"https://api.github.com/repos/slightlyoff/IntersectionObserver/commits{/sha}","git_commits_url":"https://api.github.com/repos/slightlyoff/IntersectionObserver/git/commits{/sha}","comments_url":"https://api.github.com/repos/slightlyoff/IntersectionObserver/comments{/number}","issue_comment_url":"https://api.github.com/repos/slightlyoff/IntersectionObserver/issues/comments{/number}","contents_url":"https://api.github.com/repos/slightlyoff/IntersectionObserver/contents/{+path}","compare_url":"https://api.github.com/repos/slightlyoff/IntersectionObserver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/slightlyoff/IntersectionObserver/merges","archive_url":"https://api.github.com/repos/slightlyoff/IntersectionObserver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/slightlyoff/IntersectionObserver/downloads","issues_url":"https://api.github.com/repos/slightlyoff/IntersectionObserver/issues{/number}","pulls_url":"https://api.github.com/repos/slightlyoff/IntersectionObserver/pulls{/number}","milestones_url":"https://api.github.com/repos/slightlyoff/IntersectionObserver/milestones{/number}","notifications_url":"https://api.github.com/repos/slightlyoff/IntersectionObserver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/slightlyoff/IntersectionObserver/labels{/name}","releases_url":"https://api.github.com/repos/slightlyoff/IntersectionObserver/releases{/id}","created_at":"2015-06-19T23:12:24Z","updated_at":"2015-10-07T17:13:19Z","pushed_at":"2015-10-08T19:54:53Z","git_url":"git://github.com/slightlyoff/IntersectionObserver.git","ssh_url":"git@github.com:slightlyoff/IntersectionObserver.git","clone_url":"https://github.com/slightlyoff/IntersectionObserver.git","svn_url":"https://github.com/slightlyoff/IntersectionObserver","homepage":"","size":230,"stargazers_count":8,"watchers_count":8,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":15,"forks":1,"open_issues":15,"watchers":8,"default_branch":"master"}},"base":{"label":"slightlyoff:master","ref":"master","sha":"48cafe8305aacfadfffa46a85387d172821d478a","user":{"login":"slightlyoff","id":97331,"avatar_url":"https://avatars.githubusercontent.com/u/97331?v=3","gravatar_id":"","url":"https://api.github.com/users/slightlyoff","html_url":"https://github.com/slightlyoff","followers_url":"https://api.github.com/users/slightlyoff/followers","following_url":"https://api.github.com/users/slightlyoff/following{/other_user}","gists_url":"https://api.github.com/users/slightlyoff/gists{/gist_id}","starred_url":"https://api.github.com/users/slightlyoff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slightlyoff/subscriptions","organizations_url":"https://api.github.com/users/slightlyoff/orgs","repos_url":"https://api.github.com/users/slightlyoff/repos","events_url":"https://api.github.com/users/slightlyoff/events{/privacy}","received_events_url":"https://api.github.com/users/slightlyoff/received_events","type":"User","site_admin":false},"repo":{"id":37750203,"name":"IntersectionObserver","full_name":"slightlyoff/IntersectionObserver","owner":{"login":"slightlyoff","id":97331,"avatar_url":"https://avatars.githubusercontent.com/u/97331?v=3","gravatar_id":"","url":"https://api.github.com/users/slightlyoff","html_url":"https://github.com/slightlyoff","followers_url":"https://api.github.com/users/slightlyoff/followers","following_url":"https://api.github.com/users/slightlyoff/following{/other_user}","gists_url":"https://api.github.com/users/slightlyoff/gists{/gist_id}","starred_url":"https://api.github.com/users/slightlyoff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slightlyoff/subscriptions","organizations_url":"https://api.github.com/users/slightlyoff/orgs","repos_url":"https://api.github.com/users/slightlyoff/repos","events_url":"https://api.github.com/users/slightlyoff/events{/privacy}","received_events_url":"https://api.github.com/users/slightlyoff/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/slightlyoff/IntersectionObserver","description":"API Sketch for Intersection Observers","fork":false,"url":"https://api.github.com/repos/slightlyoff/IntersectionObserver","forks_url":"https://api.github.com/repos/slightlyoff/IntersectionObserver/forks","keys_url":"https://api.github.com/repos/slightlyoff/IntersectionObserver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/slightlyoff/IntersectionObserver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/slightlyoff/IntersectionObserver/teams","hooks_url":"https://api.github.com/repos/slightlyoff/IntersectionObserver/hooks","issue_events_url":"https://api.github.com/repos/slightlyoff/IntersectionObserver/issues/events{/number}","events_url":"https://api.github.com/repos/slightlyoff/IntersectionObserver/events","assignees_url":"https://api.github.com/repos/slightlyoff/IntersectionObserver/assignees{/user}","branches_url":"https://api.github.com/repos/slightlyoff/IntersectionObserver/branches{/branch}","tags_url":"https://api.github.com/repos/slightlyoff/IntersectionObserver/tags","blobs_url":"https://api.github.com/repos/slightlyoff/IntersectionObserver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/slightlyoff/IntersectionObserver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/slightlyoff/IntersectionObserver/git/refs{/sha}","trees_url":"https://api.github.com/repos/slightlyoff/IntersectionObserver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/slightlyoff/IntersectionObserver/statuses/{sha}","languages_url":"https://api.github.com/repos/slightlyoff/IntersectionObserver/languages","stargazers_url":"https://api.github.com/repos/slightlyoff/IntersectionObserver/stargazers","contributors_url":"https://api.github.com/repos/slightlyoff/IntersectionObserver/contributors","subscribers_url":"https://api.github.com/repos/slightlyoff/IntersectionObserver/subscribers","subscription_url":"https://api.github.com/repos/slightlyoff/IntersectionObserver/subscription","commits_url":"https://api.github.com/repos/slightlyoff/IntersectionObserver/commits{/sha}","git_commits_url":"https://api.github.com/repos/slightlyoff/IntersectionObserver/git/commits{/sha}","comments_url":"https://api.github.com/repos/slightlyoff/IntersectionObserver/comments{/number}","issue_comment_url":"https://api.github.com/repos/slightlyoff/IntersectionObserver/issues/comments{/number}","contents_url":"https://api.github.com/repos/slightlyoff/IntersectionObserver/contents/{+path}","compare_url":"https://api.github.com/repos/slightlyoff/IntersectionObserver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/slightlyoff/IntersectionObserver/merges","archive_url":"https://api.github.com/repos/slightlyoff/IntersectionObserver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/slightlyoff/IntersectionObserver/downloads","issues_url":"https://api.github.com/repos/slightlyoff/IntersectionObserver/issues{/number}","pulls_url":"https://api.github.com/repos/slightlyoff/IntersectionObserver/pulls{/number}","milestones_url":"https://api.github.com/repos/slightlyoff/IntersectionObserver/milestones{/number}","notifications_url":"https://api.github.com/repos/slightlyoff/IntersectionObserver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/slightlyoff/IntersectionObserver/labels{/name}","releases_url":"https://api.github.com/repos/slightlyoff/IntersectionObserver/releases{/id}","created_at":"2015-06-19T23:12:24Z","updated_at":"2015-10-07T17:13:19Z","pushed_at":"2015-10-08T19:54:53Z","git_url":"git://github.com/slightlyoff/IntersectionObserver.git","ssh_url":"git@github.com:slightlyoff/IntersectionObserver.git","clone_url":"https://github.com/slightlyoff/IntersectionObserver.git","svn_url":"https://github.com/slightlyoff/IntersectionObserver","homepage":"","size":230,"stargazers_count":8,"watchers_count":8,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":15,"forks":1,"open_issues":15,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/slightlyoff/IntersectionObserver/pulls/47"},"html":{"href":"https://github.com/slightlyoff/IntersectionObserver/pull/47"},"issue":{"href":"https://api.github.com/repos/slightlyoff/IntersectionObserver/issues/47"},"comments":{"href":"https://api.github.com/repos/slightlyoff/IntersectionObserver/issues/47/comments"},"review_comments":{"href":"https://api.github.com/repos/slightlyoff/IntersectionObserver/pulls/47/comments"},"review_comment":{"href":"https://api.github.com/repos/slightlyoff/IntersectionObserver/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/slightlyoff/IntersectionObserver/pulls/47/commits"},"statuses":{"href":"https://api.github.com/repos/slightlyoff/IntersectionObserver/statuses/0be68d9674154ea1ec4e4f9b4980a3279ac279c7"}}}}