{"action":"created","issue":{"url":"https://api.github.com/repos/tigt/tumblrplate/issues/2","repository_url":"https://api.github.com/repos/tigt/tumblrplate","labels_url":"https://api.github.com/repos/tigt/tumblrplate/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/tigt/tumblrplate/issues/2/comments","events_url":"https://api.github.com/repos/tigt/tumblrplate/issues/2/events","html_url":"https://github.com/tigt/tumblrplate/issues/2","id":37729840,"node_id":"MDU6SXNzdWUzNzcyOTg0MA==","number":2,"title":"<html> lang attribute conflict with inserted Tumblr code","user":{"login":"tigt","id":8072522,"node_id":"MDQ6VXNlcjgwNzI1MjI=","avatar_url":"https://avatars2.githubusercontent.com/u/8072522?v=4","gravatar_id":"","url":"https://api.github.com/users/tigt","html_url":"https://github.com/tigt","followers_url":"https://api.github.com/users/tigt/followers","following_url":"https://api.github.com/users/tigt/following{/other_user}","gists_url":"https://api.github.com/users/tigt/gists{/gist_id}","starred_url":"https://api.github.com/users/tigt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tigt/subscriptions","organizations_url":"https://api.github.com/users/tigt/orgs","repos_url":"https://api.github.com/users/tigt/repos","events_url":"https://api.github.com/users/tigt/events{/privacy}","received_events_url":"https://api.github.com/users/tigt/received_events","type":"User","site_admin":false},"labels":[{"id":112827297,"node_id":"MDU6TGFiZWwxMTI4MjcyOTc=","url":"https://api.github.com/repos/tigt/tumblrplate/labels/help%20wanted","name":"help wanted","color":"159818","default":true},{"id":112827299,"node_id":"MDU6TGFiZWwxMTI4MjcyOTk=","url":"https://api.github.com/repos/tigt/tumblrplate/labels/question","name":"question","color":"cc317c","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2014-07-12T22:23:28Z","updated_at":"2018-06-09T03:03:11Z","closed_at":"2018-06-09T03:03:11Z","author_association":"OWNER","body":"Tumblr prepends the following code to all served pages:\n\n```\n<!DOCTYPE html>\n<script>var __pbpa = true;</script><script>var translated_warning_string = 'Warning: Never enter your Tumblr password unless \\u201chttps://www.tumblr.com/login\\u201d\\x0ais the address in your web browser.\\x0a\\x0aYou should also see a green \\u201cTumblr, Inc.\\u201d identification in the address bar.\\x0a\\x0aSpammers and other bad guys use fake forms to steal passwords.\\x0a\\x0aTumblr will never ask you to log in from a user\\u2019s blog.\\x0a\\x0aAre you absolutely sure you want to continue?';</script><script type=\"text/javascript\" language=\"javascript\" src=\"http://assets.tumblr.com/assets/scripts/pre_tumblelog.js?_v=a3e5e7f1b487e101133066aadcff3cde\"></script>\n```\n\n...Before the `<html>` tag. I've heard browsers deal with code like this by sighing and constructing a set of \"phantom\" `<html>` and `<head>` tags. Clearly it's not too much of a problem, as Tumblr has been serving pages forever, but I'm concerned that the software and APIs that rely on the `lang` attribute may get tripped up on this.\n\nPossible options include stuffing the language in a `<meta>`, which seems like it could work while flouting validation. (Of course, the inserted script automatically screws that up anyway.) I only worry about its deprecation.\n\nUsing the DOM inspector in Chrome & Firefox doesn't show anything too amiss... but am I missing something?\n"},"comment":{"url":"https://api.github.com/repos/tigt/tumblrplate/issues/comments/395934783","html_url":"https://github.com/tigt/tumblrplate/issues/2#issuecomment-395934783","issue_url":"https://api.github.com/repos/tigt/tumblrplate/issues/2","id":395934783,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NTkzNDc4Mw==","user":{"login":"tigt","id":8072522,"node_id":"MDQ6VXNlcjgwNzI1MjI=","avatar_url":"https://avatars2.githubusercontent.com/u/8072522?v=4","gravatar_id":"","url":"https://api.github.com/users/tigt","html_url":"https://github.com/tigt","followers_url":"https://api.github.com/users/tigt/followers","following_url":"https://api.github.com/users/tigt/following{/other_user}","gists_url":"https://api.github.com/users/tigt/gists{/gist_id}","starred_url":"https://api.github.com/users/tigt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tigt/subscriptions","organizations_url":"https://api.github.com/users/tigt/orgs","repos_url":"https://api.github.com/users/tigt/repos","events_url":"https://api.github.com/users/tigt/events{/privacy}","received_events_url":"https://api.github.com/users/tigt/received_events","type":"User","site_admin":false},"created_at":"2018-06-09T03:03:11Z","updated_at":"2018-06-09T03:03:11Z","author_association":"OWNER","body":"Turns out the HTML spec allows for this tomfoolery."}}
{"actor":{"display_login":"tigt"}}