{"action":"created","issue":{"url":"https://api.github.com/repos/ampproject/amphtml/issues/2966","repository_url":"https://api.github.com/repos/ampproject/amphtml","labels_url":"https://api.github.com/repos/ampproject/amphtml/issues/2966/labels{/name}","comments_url":"https://api.github.com/repos/ampproject/amphtml/issues/2966/comments","events_url":"https://api.github.com/repos/ampproject/amphtml/issues/2966/events","html_url":"https://github.com/ampproject/amphtml/issues/2966","id":150228814,"number":2966,"title":"Misleading \"The tag 'script' is disallowed except in specific forms.\" error for JSON+LD script element","user":{"login":"dandv","id":33569,"avatar_url":"https://avatars.githubusercontent.com/u/33569?v=3","gravatar_id":"","url":"https://api.github.com/users/dandv","html_url":"https://github.com/dandv","followers_url":"https://api.github.com/users/dandv/followers","following_url":"https://api.github.com/users/dandv/following{/other_user}","gists_url":"https://api.github.com/users/dandv/gists{/gist_id}","starred_url":"https://api.github.com/users/dandv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dandv/subscriptions","organizations_url":"https://api.github.com/users/dandv/orgs","repos_url":"https://api.github.com/users/dandv/repos","events_url":"https://api.github.com/users/dandv/events{/privacy}","received_events_url":"https://api.github.com/users/dandv/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ampproject/amphtml/labels/Type:%20Bug","name":"Type: Bug","color":"f7c6c7"}],"state":"open","locked":false,"assignee":{"login":"powdercloud","id":14113543,"avatar_url":"https://avatars.githubusercontent.com/u/14113543?v=3","gravatar_id":"","url":"https://api.github.com/users/powdercloud","html_url":"https://github.com/powdercloud","followers_url":"https://api.github.com/users/powdercloud/followers","following_url":"https://api.github.com/users/powdercloud/following{/other_user}","gists_url":"https://api.github.com/users/powdercloud/gists{/gist_id}","starred_url":"https://api.github.com/users/powdercloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/powdercloud/subscriptions","organizations_url":"https://api.github.com/users/powdercloud/orgs","repos_url":"https://api.github.com/users/powdercloud/repos","events_url":"https://api.github.com/users/powdercloud/events{/privacy}","received_events_url":"https://api.github.com/users/powdercloud/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/ampproject/amphtml/milestones/4","html_url":"https://github.com/ampproject/amphtml/milestones/Backlog","labels_url":"https://api.github.com/repos/ampproject/amphtml/milestones/4/labels","id":1537240,"number":4,"title":"Backlog","description":"This milestone tracks issues that aren't currently prioritized for implementation.","creator":{"login":"rudygalfi","id":3888212,"avatar_url":"https://avatars.githubusercontent.com/u/3888212?v=3","gravatar_id":"","url":"https://api.github.com/users/rudygalfi","html_url":"https://github.com/rudygalfi","followers_url":"https://api.github.com/users/rudygalfi/followers","following_url":"https://api.github.com/users/rudygalfi/following{/other_user}","gists_url":"https://api.github.com/users/rudygalfi/gists{/gist_id}","starred_url":"https://api.github.com/users/rudygalfi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rudygalfi/subscriptions","organizations_url":"https://api.github.com/users/rudygalfi/orgs","repos_url":"https://api.github.com/users/rudygalfi/repos","events_url":"https://api.github.com/users/rudygalfi/events{/privacy}","received_events_url":"https://api.github.com/users/rudygalfi/received_events","type":"User","site_admin":false},"open_issues":222,"closed_issues":38,"state":"open","created_at":"2016-01-22T23:51:53Z","updated_at":"2016-05-31T17:24:01Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2016-04-22T00:35:52Z","updated_at":"2016-05-31T20:41:38Z","closed_at":null,"body":"If the JSON+LD `<script>` element is placed in the `<body>` vs. `<head>`, the resulting error is:\r\n\r\n\"The tag 'script' is disallowed except in specific forms.\"\r\n\r\nThis has confused a partner today. Here's a small sample reproducing the error:\r\n\r\n```html\r\n<!doctype html>\r\n<html AMP lang=\"en\">\r\n  <head>\r\n    <meta charset=\"utf-8\">\r\n    <title>Lorem Ipsum</title>\r\n    <link rel=\"canonical\" href=\"http://example.ampproject.org/recipe-metadata.html\" />\r\n    <meta name=\"viewport\" content=\"width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no,minimal-ui\">\r\n    <!-- this style tag is required -->\r\n    <style amp-boilerplate>body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}</style>\r\n  <noscript><style amp-boilerplate>body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}</style></noscript>\r\n    <script async src=\"https://cdn.ampproject.org/v0.js\"></script>\r\n  </head>\r\n  <body>\r\n    \r\n  <script type=\"application/ld+json\">\r\n      {\r\n        \"@context\": \"http://schema.org/\",\r\n        \"@type\": \"Recipe\",\r\n        \"mainEntityOfPage\": \"http://example.ampproject.org/recipe-metadata.html\",\r\n        \"name\": \"Grandma's Holiday Apple Pie\",\r\n        \"image\": {\r\n          \"@type\": \"ImageObject\",\r\n          \"url\": \"http://cdn.ampproject.org/leader.jpg\",\r\n          \"height\": 200,\r\n          \"width\": 200\r\n        },\r\n      }\r\n    </script>\r\n      ...\r\n  </body>\r\n</html>\r\n```"},"comment":{"url":"https://api.github.com/repos/ampproject/amphtml/issues/comments/222813633","html_url":"https://github.com/ampproject/amphtml/issues/2966#issuecomment-222813633","issue_url":"https://api.github.com/repos/ampproject/amphtml/issues/2966","id":222813633,"user":{"login":"Gregable","id":25519,"avatar_url":"https://avatars.githubusercontent.com/u/25519?v=3","gravatar_id":"","url":"https://api.github.com/users/Gregable","html_url":"https://github.com/Gregable","followers_url":"https://api.github.com/users/Gregable/followers","following_url":"https://api.github.com/users/Gregable/following{/other_user}","gists_url":"https://api.github.com/users/Gregable/gists{/gist_id}","starred_url":"https://api.github.com/users/Gregable/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gregable/subscriptions","organizations_url":"https://api.github.com/users/Gregable/orgs","repos_url":"https://api.github.com/users/Gregable/repos","events_url":"https://api.github.com/users/Gregable/events{/privacy}","received_events_url":"https://api.github.com/users/Gregable/received_events","type":"User","site_admin":false},"created_at":"2016-05-31T20:41:37Z","updated_at":"2016-05-31T20:41:37Z","body":"This is now fixed by allowing the SD in the `<body>`."}}
{"actor":{"display_login":"Gregable"}}