{"action":"created","issue":{"url":"https://api.github.com/repos/htacg/tidy-html5/issues/65","labels_url":"https://api.github.com/repos/htacg/tidy-html5/issues/65/labels{/name}","comments_url":"https://api.github.com/repos/htacg/tidy-html5/issues/65/comments","events_url":"https://api.github.com/repos/htacg/tidy-html5/issues/65/events","html_url":"https://github.com/htacg/tidy-html5/issues/65","id":6380526,"number":65,"title":"Parser too greedy over <script> blocks","user":{"login":"NoNoNo","id":803682,"avatar_url":"https://avatars.githubusercontent.com/u/803682?v=3","gravatar_id":"","url":"https://api.github.com/users/NoNoNo","html_url":"https://github.com/NoNoNo","followers_url":"https://api.github.com/users/NoNoNo/followers","following_url":"https://api.github.com/users/NoNoNo/following{/other_user}","gists_url":"https://api.github.com/users/NoNoNo/gists{/gist_id}","starred_url":"https://api.github.com/users/NoNoNo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NoNoNo/subscriptions","organizations_url":"https://api.github.com/users/NoNoNo/orgs","repos_url":"https://api.github.com/users/NoNoNo/repos","events_url":"https://api.github.com/users/NoNoNo/events{/privacy}","received_events_url":"https://api.github.com/users/NoNoNo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/htacg/tidy-html5/labels/Bug%20Confirmed","name":"Bug Confirmed","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/htacg/tidy-html5/milestones/5","html_url":"https://github.com/htacg/tidy-html5/milestones/5.0.0","labels_url":"https://api.github.com/repos/htacg/tidy-html5/milestones/5/labels","id":959565,"number":5,"title":"5.0.0","description":"Tidy’s first stable release in several years. Now with HTML5 support, bug fixes, and a new management team.","creator":{"login":"balthisar","id":3053246,"avatar_url":"https://avatars.githubusercontent.com/u/3053246?v=3","gravatar_id":"","url":"https://api.github.com/users/balthisar","html_url":"https://github.com/balthisar","followers_url":"https://api.github.com/users/balthisar/followers","following_url":"https://api.github.com/users/balthisar/following{/other_user}","gists_url":"https://api.github.com/users/balthisar/gists{/gist_id}","starred_url":"https://api.github.com/users/balthisar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/balthisar/subscriptions","organizations_url":"https://api.github.com/users/balthisar/orgs","repos_url":"https://api.github.com/users/balthisar/repos","events_url":"https://api.github.com/users/balthisar/events{/privacy}","received_events_url":"https://api.github.com/users/balthisar/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":14,"state":"open","created_at":"2015-01-31T17:11:36Z","updated_at":"2015-03-06T19:49:02Z","due_on":"2015-03-13T16:00:00Z","closed_at":null},"comments":6,"created_at":"2012-08-22T15:37:45Z","updated_at":"2015-03-10T14:31:33Z","closed_at":null,"body":"I ran into a known bug, open for 5 years:\nhttp://sourceforge.net/tracker/?func=detail&atid=390963&aid=1642186&group_id=27659\n\nProposed patch:\nhttp://sourceforge.net/tracker/?func=detail&atid=390965&aid=1644645&group_id=27659\n\n\n```HTML\n<!DOCTYPE html>\n<html>\n<head><title></title>\n<body>\n<script>\nvar a = '<script';\n</script>\n</body>\n</html>\n```\n\ngives me:\n\n````\nline 7 column 7 - Warning: '<' + '/' + letter not allowed here\nline 8 column 5 - Warning: '<' + '/' + letter not allowed here\nline 9 column 5 - Warning: '<' + '/' + letter not allowed here\nline 5 column 1 - Warning: missing </script>\nline 5 column 1 - Warning: missing </script>\n````\n"},"comment":{"url":"https://api.github.com/repos/htacg/tidy-html5/issues/comments/78064906","html_url":"https://github.com/htacg/tidy-html5/issues/65#issuecomment-78064906","issue_url":"https://api.github.com/repos/htacg/tidy-html5/issues/65","id":78064906,"user":{"login":"HoffmannP","id":432592,"avatar_url":"https://avatars.githubusercontent.com/u/432592?v=3","gravatar_id":"","url":"https://api.github.com/users/HoffmannP","html_url":"https://github.com/HoffmannP","followers_url":"https://api.github.com/users/HoffmannP/followers","following_url":"https://api.github.com/users/HoffmannP/following{/other_user}","gists_url":"https://api.github.com/users/HoffmannP/gists{/gist_id}","starred_url":"https://api.github.com/users/HoffmannP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HoffmannP/subscriptions","organizations_url":"https://api.github.com/users/HoffmannP/orgs","repos_url":"https://api.github.com/users/HoffmannP/repos","events_url":"https://api.github.com/users/HoffmannP/events{/privacy}","received_events_url":"https://api.github.com/users/HoffmannP/received_events","type":"User","site_admin":false},"created_at":"2015-03-10T14:31:33Z","updated_at":"2015-03-10T14:31:33Z","body":"So I read the specification about five times and seem to have some kind of temporaral thinking barrier. I pseudocoded the ABNF:\r\n\r\n    \"not (<!--)\"  *( <!--                     \"not (-->|<script>)\" -->                     \"not (<!--)\" )\r\n      outer            comment-open    inner                    comment-close  outer\r\n\r\nYou are allowed to use as many times `</script>` inside the script-tab, just `<script>` is only allowed if enclosed in HTML-comments?!\r\n\r\nSo it seems that @NoNoNo 's example is perfectly valid HTML5"}}