{"action":"created","comment":{"url":"https://api.github.com/repos/Polymer/docs/pulls/comments/35264020","id":35264020,"diff_hunk":"@@ -131,6 +128,45 @@ To use a type-extension element in markup, use the _native_ tag and add an\n <!-- legacy anchor -->\n <a id=\"basic-callbacks\"></a>\n \n+### Define an element in the main HTML document {#main-document-definitions}\n+\n+To define an element in your main HTML document, define the element\n+from `HTMLImports.whenReady(callback)`. `callback` is invoked when \n+all imports in the document have finished loading.\n+\n+\n+    <!DOCTYPE html>\n+    <html>\n+        <head>\n+            <script src=\"bower_components/webcomponentsjs/webcomponents-lite.js\">\n+            </script>\n+            <link rel=\"import\" href=\"bower_components/polymer/polymer.html\">\n+            <title>Defining a Polymer Element from the Main Document</title>\n+        </head>\n+        <body>\n+            <dom-module id=\"main-document-element\">\n+                <template>","path":"1.0/docs/devguide/registering-elements.md","position":31,"original_position":31,"commit_id":"5eeeadcc4454879c1b0c55d661fb3ade447b31ab","original_commit_id":"5eeeadcc4454879c1b0c55d661fb3ade447b31ab","user":{"login":"ebidel","id":238208,"avatar_url":"https://avatars.githubusercontent.com/u/238208?v=3","gravatar_id":"","url":"https://api.github.com/users/ebidel","html_url":"https://github.com/ebidel","followers_url":"https://api.github.com/users/ebidel/followers","following_url":"https://api.github.com/users/ebidel/following{/other_user}","gists_url":"https://api.github.com/users/ebidel/gists{/gist_id}","starred_url":"https://api.github.com/users/ebidel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ebidel/subscriptions","organizations_url":"https://api.github.com/users/ebidel/orgs","repos_url":"https://api.github.com/users/ebidel/repos","events_url":"https://api.github.com/users/ebidel/events{/privacy}","received_events_url":"https://api.github.com/users/ebidel/received_events","type":"User","site_admin":false},"body":"can we do 2 space indentation?","created_at":"2015-07-22T21:06:15Z","updated_at":"2015-07-22T21:06:15Z","html_url":"https://github.com/Polymer/docs/pull/1256#discussion_r35264020","pull_request_url":"https://api.github.com/repos/Polymer/docs/pulls/1256","_links":{"self":{"href":"https://api.github.com/repos/Polymer/docs/pulls/comments/35264020"},"html":{"href":"https://github.com/Polymer/docs/pull/1256#discussion_r35264020"},"pull_request":{"href":"https://api.github.com/repos/Polymer/docs/pulls/1256"}}},"pull_request":{"url":"https://api.github.com/repos/Polymer/docs/pulls/1256","id":39952493,"html_url":"https://github.com/Polymer/docs/pull/1256","diff_url":"https://github.com/Polymer/docs/pull/1256.diff","patch_url":"https://github.com/Polymer/docs/pull/1256.patch","issue_url":"https://api.github.com/repos/Polymer/docs/issues/1256","number":1256,"state":"open","locked":false,"title":"Explain how to register elements from main document","user":{"login":"kaycebasques","id":4713486,"avatar_url":"https://avatars.githubusercontent.com/u/4713486?v=3","gravatar_id":"","url":"https://api.github.com/users/kaycebasques","html_url":"https://github.com/kaycebasques","followers_url":"https://api.github.com/users/kaycebasques/followers","following_url":"https://api.github.com/users/kaycebasques/following{/other_user}","gists_url":"https://api.github.com/users/kaycebasques/gists{/gist_id}","starred_url":"https://api.github.com/users/kaycebasques/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaycebasques/subscriptions","organizations_url":"https://api.github.com/users/kaycebasques/orgs","repos_url":"https://api.github.com/users/kaycebasques/repos","events_url":"https://api.github.com/users/kaycebasques/events{/privacy}","received_events_url":"https://api.github.com/users/kaycebasques/received_events","type":"User","site_admin":false},"body":"Update \"Registration and lifecycle\" document to address issue #1187.\r\n\r\n","created_at":"2015-07-14T19:26:11Z","updated_at":"2015-07-22T21:06:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d5d6791120bfd617cb3786c8433f1376c7acb80d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Polymer/docs/pulls/1256/commits","review_comments_url":"https://api.github.com/repos/Polymer/docs/pulls/1256/comments","review_comment_url":"https://api.github.com/repos/Polymer/docs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Polymer/docs/issues/1256/comments","statuses_url":"https://api.github.com/repos/Polymer/docs/statuses/5eeeadcc4454879c1b0c55d661fb3ade447b31ab","head":{"label":"Polymer:docs-1187","ref":"docs-1187","sha":"5eeeadcc4454879c1b0c55d661fb3ade447b31ab","user":{"login":"Polymer","id":2159051,"avatar_url":"https://avatars.githubusercontent.com/u/2159051?v=3","gravatar_id":"","url":"https://api.github.com/users/Polymer","html_url":"https://github.com/Polymer","followers_url":"https://api.github.com/users/Polymer/followers","following_url":"https://api.github.com/users/Polymer/following{/other_user}","gists_url":"https://api.github.com/users/Polymer/gists{/gist_id}","starred_url":"https://api.github.com/users/Polymer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Polymer/subscriptions","organizations_url":"https://api.github.com/users/Polymer/orgs","repos_url":"https://api.github.com/users/Polymer/repos","events_url":"https://api.github.com/users/Polymer/events{/privacy}","received_events_url":"https://api.github.com/users/Polymer/received_events","type":"Organization","site_admin":false},"repo":{"id":7804910,"name":"docs","full_name":"Polymer/docs","owner":{"login":"Polymer","id":2159051,"avatar_url":"https://avatars.githubusercontent.com/u/2159051?v=3","gravatar_id":"","url":"https://api.github.com/users/Polymer","html_url":"https://github.com/Polymer","followers_url":"https://api.github.com/users/Polymer/followers","following_url":"https://api.github.com/users/Polymer/following{/other_user}","gists_url":"https://api.github.com/users/Polymer/gists{/gist_id}","starred_url":"https://api.github.com/users/Polymer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Polymer/subscriptions","organizations_url":"https://api.github.com/users/Polymer/orgs","repos_url":"https://api.github.com/users/Polymer/repos","events_url":"https://api.github.com/users/Polymer/events{/privacy}","received_events_url":"https://api.github.com/users/Polymer/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Polymer/docs","description":"Documentation for Polymer","fork":false,"url":"https://api.github.com/repos/Polymer/docs","forks_url":"https://api.github.com/repos/Polymer/docs/forks","keys_url":"https://api.github.com/repos/Polymer/docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Polymer/docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Polymer/docs/teams","hooks_url":"https://api.github.com/repos/Polymer/docs/hooks","issue_events_url":"https://api.github.com/repos/Polymer/docs/issues/events{/number}","events_url":"https://api.github.com/repos/Polymer/docs/events","assignees_url":"https://api.github.com/repos/Polymer/docs/assignees{/user}","branches_url":"https://api.github.com/repos/Polymer/docs/branches{/branch}","tags_url":"https://api.github.com/repos/Polymer/docs/tags","blobs_url":"https://api.github.com/repos/Polymer/docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Polymer/docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Polymer/docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/Polymer/docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Polymer/docs/statuses/{sha}","languages_url":"https://api.github.com/repos/Polymer/docs/languages","stargazers_url":"https://api.github.com/repos/Polymer/docs/stargazers","contributors_url":"https://api.github.com/repos/Polymer/docs/contributors","subscribers_url":"https://api.github.com/repos/Polymer/docs/subscribers","subscription_url":"https://api.github.com/repos/Polymer/docs/subscription","commits_url":"https://api.github.com/repos/Polymer/docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/Polymer/docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/Polymer/docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/Polymer/docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/Polymer/docs/contents/{+path}","compare_url":"https://api.github.com/repos/Polymer/docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Polymer/docs/merges","archive_url":"https://api.github.com/repos/Polymer/docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Polymer/docs/downloads","issues_url":"https://api.github.com/repos/Polymer/docs/issues{/number}","pulls_url":"https://api.github.com/repos/Polymer/docs/pulls{/number}","milestones_url":"https://api.github.com/repos/Polymer/docs/milestones{/number}","notifications_url":"https://api.github.com/repos/Polymer/docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Polymer/docs/labels{/name}","releases_url":"https://api.github.com/repos/Polymer/docs/releases{/id}","created_at":"2013-01-24T19:11:00Z","updated_at":"2015-07-22T14:08:08Z","pushed_at":"2015-07-22T20:54:16Z","git_url":"git://github.com/Polymer/docs.git","ssh_url":"git@github.com:Polymer/docs.git","clone_url":"https://github.com/Polymer/docs.git","svn_url":"https://github.com/Polymer/docs","homepage":"https://www.polymer-project.org","size":70662,"stargazers_count":810,"watchers_count":810,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2142,"mirror_url":null,"open_issues_count":152,"forks":2142,"open_issues":152,"watchers":810,"default_branch":"master"}},"base":{"label":"Polymer:master","ref":"master","sha":"77d9b8b83d9e24893858d9da456626ed12987650","user":{"login":"Polymer","id":2159051,"avatar_url":"https://avatars.githubusercontent.com/u/2159051?v=3","gravatar_id":"","url":"https://api.github.com/users/Polymer","html_url":"https://github.com/Polymer","followers_url":"https://api.github.com/users/Polymer/followers","following_url":"https://api.github.com/users/Polymer/following{/other_user}","gists_url":"https://api.github.com/users/Polymer/gists{/gist_id}","starred_url":"https://api.github.com/users/Polymer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Polymer/subscriptions","organizations_url":"https://api.github.com/users/Polymer/orgs","repos_url":"https://api.github.com/users/Polymer/repos","events_url":"https://api.github.com/users/Polymer/events{/privacy}","received_events_url":"https://api.github.com/users/Polymer/received_events","type":"Organization","site_admin":false},"repo":{"id":7804910,"name":"docs","full_name":"Polymer/docs","owner":{"login":"Polymer","id":2159051,"avatar_url":"https://avatars.githubusercontent.com/u/2159051?v=3","gravatar_id":"","url":"https://api.github.com/users/Polymer","html_url":"https://github.com/Polymer","followers_url":"https://api.github.com/users/Polymer/followers","following_url":"https://api.github.com/users/Polymer/following{/other_user}","gists_url":"https://api.github.com/users/Polymer/gists{/gist_id}","starred_url":"https://api.github.com/users/Polymer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Polymer/subscriptions","organizations_url":"https://api.github.com/users/Polymer/orgs","repos_url":"https://api.github.com/users/Polymer/repos","events_url":"https://api.github.com/users/Polymer/events{/privacy}","received_events_url":"https://api.github.com/users/Polymer/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Polymer/docs","description":"Documentation for Polymer","fork":false,"url":"https://api.github.com/repos/Polymer/docs","forks_url":"https://api.github.com/repos/Polymer/docs/forks","keys_url":"https://api.github.com/repos/Polymer/docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Polymer/docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Polymer/docs/teams","hooks_url":"https://api.github.com/repos/Polymer/docs/hooks","issue_events_url":"https://api.github.com/repos/Polymer/docs/issues/events{/number}","events_url":"https://api.github.com/repos/Polymer/docs/events","assignees_url":"https://api.github.com/repos/Polymer/docs/assignees{/user}","branches_url":"https://api.github.com/repos/Polymer/docs/branches{/branch}","tags_url":"https://api.github.com/repos/Polymer/docs/tags","blobs_url":"https://api.github.com/repos/Polymer/docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Polymer/docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Polymer/docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/Polymer/docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Polymer/docs/statuses/{sha}","languages_url":"https://api.github.com/repos/Polymer/docs/languages","stargazers_url":"https://api.github.com/repos/Polymer/docs/stargazers","contributors_url":"https://api.github.com/repos/Polymer/docs/contributors","subscribers_url":"https://api.github.com/repos/Polymer/docs/subscribers","subscription_url":"https://api.github.com/repos/Polymer/docs/subscription","commits_url":"https://api.github.com/repos/Polymer/docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/Polymer/docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/Polymer/docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/Polymer/docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/Polymer/docs/contents/{+path}","compare_url":"https://api.github.com/repos/Polymer/docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Polymer/docs/merges","archive_url":"https://api.github.com/repos/Polymer/docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Polymer/docs/downloads","issues_url":"https://api.github.com/repos/Polymer/docs/issues{/number}","pulls_url":"https://api.github.com/repos/Polymer/docs/pulls{/number}","milestones_url":"https://api.github.com/repos/Polymer/docs/milestones{/number}","notifications_url":"https://api.github.com/repos/Polymer/docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Polymer/docs/labels{/name}","releases_url":"https://api.github.com/repos/Polymer/docs/releases{/id}","created_at":"2013-01-24T19:11:00Z","updated_at":"2015-07-22T14:08:08Z","pushed_at":"2015-07-22T20:54:16Z","git_url":"git://github.com/Polymer/docs.git","ssh_url":"git@github.com:Polymer/docs.git","clone_url":"https://github.com/Polymer/docs.git","svn_url":"https://github.com/Polymer/docs","homepage":"https://www.polymer-project.org","size":70662,"stargazers_count":810,"watchers_count":810,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2142,"mirror_url":null,"open_issues_count":152,"forks":2142,"open_issues":152,"watchers":810,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Polymer/docs/pulls/1256"},"html":{"href":"https://github.com/Polymer/docs/pull/1256"},"issue":{"href":"https://api.github.com/repos/Polymer/docs/issues/1256"},"comments":{"href":"https://api.github.com/repos/Polymer/docs/issues/1256/comments"},"review_comments":{"href":"https://api.github.com/repos/Polymer/docs/pulls/1256/comments"},"review_comment":{"href":"https://api.github.com/repos/Polymer/docs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Polymer/docs/pulls/1256/commits"},"statuses":{"href":"https://api.github.com/repos/Polymer/docs/statuses/5eeeadcc4454879c1b0c55d661fb3ade447b31ab"}}}}