{"action":"created","comment":{"url":"https://api.github.com/repos/wyeworks/blog/pulls/comments/79707568","id":79707568,"diff_hunk":"@@ -0,0 +1,123 @@\n+---\n+layout: post\n+title: \"What the tag? Episode 1 - The Document object\"\n+category: html\n+comments: true\n+author:\n+  name: 'Federico Kauffman'\n+  email: 'federico@wyeworks.com'\n+  twitter_handle: 'fedekauffman'\n+  github_handle: 'fedekau'\n+  image: '/images/team/federico-kauffman.jpg'\n+  description: \"Developer working with Ruby and Ember, passionate about technology, robotics and crossfit (Yes, I\\'am crazy).\"\n+---\n+\n+Twenty three years ago as I was learning to walk something more important was happening, something that has been part of the technology we use every day, something that pretty much brought us where we are (in terms of web development), that was HTML's birth!\n+\n+In this series we will dig into the modern HTML's DNA (or as the people at [WHATWG](https://whatwg.org/) call it, [The Living Standard](https://html.spec.whatwg.org/multipage/dom.html)), we will look for things that are not usual to see or people just don't know because anyone told them, and we will try to explore them.\n+\n+<!--more-->\n+\n+I've been working with HTML for 2 years, but I am pretty sure I am going to learn as much as many people with this adventure, so don't worry, if you just started coding and you feel that your sites still look like [the world's worst website ever](http://www.theworldsworstwebsiteever.com/) we will learn, and that's the important thing.\n+\n+# The Document object\n+\n+The DOM (Document object model) standard defines a [Document](https://dom.spec.whatwg.org/#interface-document) interface which has many attributes and functions that will let you interact and know more about the document you are dealing with.\n+\n+**Please right click this website, click inspect, go to the console tab and try the things we learn as you read, you won't be breaking anything!**\n+\n+## Resource metadata management\n+\n+`document.referrer`\n+\n+This attribute returns the URL of the document from which the user navigated from or the empty string if there is no such information (for example if you typed the URL directly) or if this information was blocked using the `noreferrer` link type.\n+\n+`document.cookie`\n+\n+Very common these days, if you are not using it in your websites probably someone is using it on you. It is used to store the HTTP cookies for the current document, this can be set by you or it can be set automatically by the browser. In some cases it will throw an error, see the [definition of the cookie](https://html.spec.whatwg.org/multipage/dom.html#dom-document-cookie) for more info.\n+\n+`document.lastModified`\n+\n+It lets you know about when the document was modified for the last time, this info is retrieved from the server response, in case this is not available the current time is returned in the local time zone.","path":"source/_posts/2016-09-14-what_the_tag_series_ep1_document_object.markdown","position":41,"original_position":41,"commit_id":"b1cd53a83b524bb6fe17630b84f55aa5ea0b4c71","original_commit_id":"b1cd53a83b524bb6fe17630b84f55aa5ea0b4c71","user":{"login":"sdebarros","id":5116277,"avatar_url":"https://avatars.githubusercontent.com/u/5116277?v=3","gravatar_id":"","url":"https://api.github.com/users/sdebarros","html_url":"https://github.com/sdebarros","followers_url":"https://api.github.com/users/sdebarros/followers","following_url":"https://api.github.com/users/sdebarros/following{/other_user}","gists_url":"https://api.github.com/users/sdebarros/gists{/gist_id}","starred_url":"https://api.github.com/users/sdebarros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdebarros/subscriptions","organizations_url":"https://api.github.com/users/sdebarros/orgs","repos_url":"https://api.github.com/users/sdebarros/repos","events_url":"https://api.github.com/users/sdebarros/events{/privacy}","received_events_url":"https://api.github.com/users/sdebarros/received_events","type":"User","site_admin":false},"body":"s/know about when/know when","created_at":"2016-09-20T20:43:27Z","updated_at":"2016-09-20T20:55:28Z","html_url":"https://github.com/wyeworks/blog/pull/43#discussion_r79707568","pull_request_url":"https://api.github.com/repos/wyeworks/blog/pulls/43","_links":{"self":{"href":"https://api.github.com/repos/wyeworks/blog/pulls/comments/79707568"},"html":{"href":"https://github.com/wyeworks/blog/pull/43#discussion_r79707568"},"pull_request":{"href":"https://api.github.com/repos/wyeworks/blog/pulls/43"}}},"pull_request":{"url":"https://api.github.com/repos/wyeworks/blog/pulls/43","id":85576126,"html_url":"https://github.com/wyeworks/blog/pull/43","diff_url":"https://github.com/wyeworks/blog/pull/43.diff","patch_url":"https://github.com/wyeworks/blog/pull/43.patch","issue_url":"https://api.github.com/repos/wyeworks/blog/issues/43","number":43,"state":"open","locked":false,"title":"WHATWG series EP1","user":{"login":"fedekau","id":7522836,"avatar_url":"https://avatars.githubusercontent.com/u/7522836?v=3","gravatar_id":"","url":"https://api.github.com/users/fedekau","html_url":"https://github.com/fedekau","followers_url":"https://api.github.com/users/fedekau/followers","following_url":"https://api.github.com/users/fedekau/following{/other_user}","gists_url":"https://api.github.com/users/fedekau/gists{/gist_id}","starred_url":"https://api.github.com/users/fedekau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fedekau/subscriptions","organizations_url":"https://api.github.com/users/fedekau/orgs","repos_url":"https://api.github.com/users/fedekau/repos","events_url":"https://api.github.com/users/fedekau/events{/privacy}","received_events_url":"https://api.github.com/users/fedekau/received_events","type":"User","site_admin":false},"body":"This is the first post of a series of posts that will deeply explore the current HTML standard as defined in [the living standard](https://html.spec.whatwg.org/multipage/)\r\n\r\nThe idea is to go through the things people ignore because they never been told or things that are not common to see.\r\n\r\nTHIS IS NOT FINISHED YET, A SECTION IS STILL MISSING","created_at":"2016-09-16T13:46:42Z","updated_at":"2016-09-20T20:55:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3cbe3909dcc92c5efdbefb944764f1d74236b676","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/wyeworks/blog/pulls/43/commits","review_comments_url":"https://api.github.com/repos/wyeworks/blog/pulls/43/comments","review_comment_url":"https://api.github.com/repos/wyeworks/blog/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wyeworks/blog/issues/43/comments","statuses_url":"https://api.github.com/repos/wyeworks/blog/statuses/b1cd53a83b524bb6fe17630b84f55aa5ea0b4c71","head":{"label":"wyeworks:fk-whatwg-series-ep1","ref":"fk-whatwg-series-ep1","sha":"b1cd53a83b524bb6fe17630b84f55aa5ea0b4c71","user":{"login":"wyeworks","id":135745,"avatar_url":"https://avatars.githubusercontent.com/u/135745?v=3","gravatar_id":"","url":"https://api.github.com/users/wyeworks","html_url":"https://github.com/wyeworks","followers_url":"https://api.github.com/users/wyeworks/followers","following_url":"https://api.github.com/users/wyeworks/following{/other_user}","gists_url":"https://api.github.com/users/wyeworks/gists{/gist_id}","starred_url":"https://api.github.com/users/wyeworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wyeworks/subscriptions","organizations_url":"https://api.github.com/users/wyeworks/orgs","repos_url":"https://api.github.com/users/wyeworks/repos","events_url":"https://api.github.com/users/wyeworks/events{/privacy}","received_events_url":"https://api.github.com/users/wyeworks/received_events","type":"Organization","site_admin":false},"repo":{"id":5289689,"name":"blog","full_name":"wyeworks/blog","owner":{"login":"wyeworks","id":135745,"avatar_url":"https://avatars.githubusercontent.com/u/135745?v=3","gravatar_id":"","url":"https://api.github.com/users/wyeworks","html_url":"https://github.com/wyeworks","followers_url":"https://api.github.com/users/wyeworks/followers","following_url":"https://api.github.com/users/wyeworks/following{/other_user}","gists_url":"https://api.github.com/users/wyeworks/gists{/gist_id}","starred_url":"https://api.github.com/users/wyeworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wyeworks/subscriptions","organizations_url":"https://api.github.com/users/wyeworks/orgs","repos_url":"https://api.github.com/users/wyeworks/repos","events_url":"https://api.github.com/users/wyeworks/events{/privacy}","received_events_url":"https://api.github.com/users/wyeworks/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wyeworks/blog","description":"WyeWorks Blog","fork":false,"url":"https://api.github.com/repos/wyeworks/blog","forks_url":"https://api.github.com/repos/wyeworks/blog/forks","keys_url":"https://api.github.com/repos/wyeworks/blog/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wyeworks/blog/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wyeworks/blog/teams","hooks_url":"https://api.github.com/repos/wyeworks/blog/hooks","issue_events_url":"https://api.github.com/repos/wyeworks/blog/issues/events{/number}","events_url":"https://api.github.com/repos/wyeworks/blog/events","assignees_url":"https://api.github.com/repos/wyeworks/blog/assignees{/user}","branches_url":"https://api.github.com/repos/wyeworks/blog/branches{/branch}","tags_url":"https://api.github.com/repos/wyeworks/blog/tags","blobs_url":"https://api.github.com/repos/wyeworks/blog/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wyeworks/blog/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wyeworks/blog/git/refs{/sha}","trees_url":"https://api.github.com/repos/wyeworks/blog/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wyeworks/blog/statuses/{sha}","languages_url":"https://api.github.com/repos/wyeworks/blog/languages","stargazers_url":"https://api.github.com/repos/wyeworks/blog/stargazers","contributors_url":"https://api.github.com/repos/wyeworks/blog/contributors","subscribers_url":"https://api.github.com/repos/wyeworks/blog/subscribers","subscription_url":"https://api.github.com/repos/wyeworks/blog/subscription","commits_url":"https://api.github.com/repos/wyeworks/blog/commits{/sha}","git_commits_url":"https://api.github.com/repos/wyeworks/blog/git/commits{/sha}","comments_url":"https://api.github.com/repos/wyeworks/blog/comments{/number}","issue_comment_url":"https://api.github.com/repos/wyeworks/blog/issues/comments{/number}","contents_url":"https://api.github.com/repos/wyeworks/blog/contents/{+path}","compare_url":"https://api.github.com/repos/wyeworks/blog/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wyeworks/blog/merges","archive_url":"https://api.github.com/repos/wyeworks/blog/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wyeworks/blog/downloads","issues_url":"https://api.github.com/repos/wyeworks/blog/issues{/number}","pulls_url":"https://api.github.com/repos/wyeworks/blog/pulls{/number}","milestones_url":"https://api.github.com/repos/wyeworks/blog/milestones{/number}","notifications_url":"https://api.github.com/repos/wyeworks/blog/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wyeworks/blog/labels{/name}","releases_url":"https://api.github.com/repos/wyeworks/blog/releases{/id}","deployments_url":"https://api.github.com/repos/wyeworks/blog/deployments","created_at":"2012-08-03T19:50:29Z","updated_at":"2016-01-26T00:53:44Z","pushed_at":"2016-09-20T20:31:20Z","git_url":"git://github.com/wyeworks/blog.git","ssh_url":"git@github.com:wyeworks/blog.git","clone_url":"https://github.com/wyeworks/blog.git","svn_url":"https://github.com/wyeworks/blog","homepage":"http://wyeworks.com/blog/","size":8103,"stargazers_count":1,"watchers_count":1,"language":"CSS","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":3,"forks":3,"open_issues":3,"watchers":1,"default_branch":"master"}},"base":{"label":"wyeworks:master","ref":"master","sha":"018c1c263fee3c93fd1aec5abd210f7152a38e6e","user":{"login":"wyeworks","id":135745,"avatar_url":"https://avatars.githubusercontent.com/u/135745?v=3","gravatar_id":"","url":"https://api.github.com/users/wyeworks","html_url":"https://github.com/wyeworks","followers_url":"https://api.github.com/users/wyeworks/followers","following_url":"https://api.github.com/users/wyeworks/following{/other_user}","gists_url":"https://api.github.com/users/wyeworks/gists{/gist_id}","starred_url":"https://api.github.com/users/wyeworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wyeworks/subscriptions","organizations_url":"https://api.github.com/users/wyeworks/orgs","repos_url":"https://api.github.com/users/wyeworks/repos","events_url":"https://api.github.com/users/wyeworks/events{/privacy}","received_events_url":"https://api.github.com/users/wyeworks/received_events","type":"Organization","site_admin":false},"repo":{"id":5289689,"name":"blog","full_name":"wyeworks/blog","owner":{"login":"wyeworks","id":135745,"avatar_url":"https://avatars.githubusercontent.com/u/135745?v=3","gravatar_id":"","url":"https://api.github.com/users/wyeworks","html_url":"https://github.com/wyeworks","followers_url":"https://api.github.com/users/wyeworks/followers","following_url":"https://api.github.com/users/wyeworks/following{/other_user}","gists_url":"https://api.github.com/users/wyeworks/gists{/gist_id}","starred_url":"https://api.github.com/users/wyeworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wyeworks/subscriptions","organizations_url":"https://api.github.com/users/wyeworks/orgs","repos_url":"https://api.github.com/users/wyeworks/repos","events_url":"https://api.github.com/users/wyeworks/events{/privacy}","received_events_url":"https://api.github.com/users/wyeworks/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wyeworks/blog","description":"WyeWorks Blog","fork":false,"url":"https://api.github.com/repos/wyeworks/blog","forks_url":"https://api.github.com/repos/wyeworks/blog/forks","keys_url":"https://api.github.com/repos/wyeworks/blog/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wyeworks/blog/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wyeworks/blog/teams","hooks_url":"https://api.github.com/repos/wyeworks/blog/hooks","issue_events_url":"https://api.github.com/repos/wyeworks/blog/issues/events{/number}","events_url":"https://api.github.com/repos/wyeworks/blog/events","assignees_url":"https://api.github.com/repos/wyeworks/blog/assignees{/user}","branches_url":"https://api.github.com/repos/wyeworks/blog/branches{/branch}","tags_url":"https://api.github.com/repos/wyeworks/blog/tags","blobs_url":"https://api.github.com/repos/wyeworks/blog/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wyeworks/blog/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wyeworks/blog/git/refs{/sha}","trees_url":"https://api.github.com/repos/wyeworks/blog/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wyeworks/blog/statuses/{sha}","languages_url":"https://api.github.com/repos/wyeworks/blog/languages","stargazers_url":"https://api.github.com/repos/wyeworks/blog/stargazers","contributors_url":"https://api.github.com/repos/wyeworks/blog/contributors","subscribers_url":"https://api.github.com/repos/wyeworks/blog/subscribers","subscription_url":"https://api.github.com/repos/wyeworks/blog/subscription","commits_url":"https://api.github.com/repos/wyeworks/blog/commits{/sha}","git_commits_url":"https://api.github.com/repos/wyeworks/blog/git/commits{/sha}","comments_url":"https://api.github.com/repos/wyeworks/blog/comments{/number}","issue_comment_url":"https://api.github.com/repos/wyeworks/blog/issues/comments{/number}","contents_url":"https://api.github.com/repos/wyeworks/blog/contents/{+path}","compare_url":"https://api.github.com/repos/wyeworks/blog/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wyeworks/blog/merges","archive_url":"https://api.github.com/repos/wyeworks/blog/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wyeworks/blog/downloads","issues_url":"https://api.github.com/repos/wyeworks/blog/issues{/number}","pulls_url":"https://api.github.com/repos/wyeworks/blog/pulls{/number}","milestones_url":"https://api.github.com/repos/wyeworks/blog/milestones{/number}","notifications_url":"https://api.github.com/repos/wyeworks/blog/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wyeworks/blog/labels{/name}","releases_url":"https://api.github.com/repos/wyeworks/blog/releases{/id}","deployments_url":"https://api.github.com/repos/wyeworks/blog/deployments","created_at":"2012-08-03T19:50:29Z","updated_at":"2016-01-26T00:53:44Z","pushed_at":"2016-09-20T20:31:20Z","git_url":"git://github.com/wyeworks/blog.git","ssh_url":"git@github.com:wyeworks/blog.git","clone_url":"https://github.com/wyeworks/blog.git","svn_url":"https://github.com/wyeworks/blog","homepage":"http://wyeworks.com/blog/","size":8103,"stargazers_count":1,"watchers_count":1,"language":"CSS","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":3,"forks":3,"open_issues":3,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wyeworks/blog/pulls/43"},"html":{"href":"https://github.com/wyeworks/blog/pull/43"},"issue":{"href":"https://api.github.com/repos/wyeworks/blog/issues/43"},"comments":{"href":"https://api.github.com/repos/wyeworks/blog/issues/43/comments"},"review_comments":{"href":"https://api.github.com/repos/wyeworks/blog/pulls/43/comments"},"review_comment":{"href":"https://api.github.com/repos/wyeworks/blog/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wyeworks/blog/pulls/43/commits"},"statuses":{"href":"https://api.github.com/repos/wyeworks/blog/statuses/b1cd53a83b524bb6fe17630b84f55aa5ea0b4c71"}}}}
{"actor":{"display_login":"sdebarros"}}