{"action":"closed","issue":{"url":"https://api.github.com/repos/isagalaev/highlight.js/issues/1082","repository_url":"https://api.github.com/repos/isagalaev/highlight.js","labels_url":"https://api.github.com/repos/isagalaev/highlight.js/issues/1082/labels{/name}","comments_url":"https://api.github.com/repos/isagalaev/highlight.js/issues/1082/comments","events_url":"https://api.github.com/repos/isagalaev/highlight.js/issues/1082/events","html_url":"https://github.com/isagalaev/highlight.js/issues/1082","id":134181714,"number":1082,"title":"Embedded javascript in HTML—language identification error","user":{"login":"nicolasartman","id":563507,"avatar_url":"https://avatars.githubusercontent.com/u/563507?v=3","gravatar_id":"","url":"https://api.github.com/users/nicolasartman","html_url":"https://github.com/nicolasartman","followers_url":"https://api.github.com/users/nicolasartman/followers","following_url":"https://api.github.com/users/nicolasartman/following{/other_user}","gists_url":"https://api.github.com/users/nicolasartman/gists{/gist_id}","starred_url":"https://api.github.com/users/nicolasartman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicolasartman/subscriptions","organizations_url":"https://api.github.com/users/nicolasartman/orgs","repos_url":"https://api.github.com/users/nicolasartman/repos","events_url":"https://api.github.com/users/nicolasartman/events{/privacy}","received_events_url":"https://api.github.com/users/nicolasartman/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-17T05:18:35Z","updated_at":"2016-02-17T20:00:05Z","closed_at":"2016-02-17T20:00:05Z","body":"I did a search through the issues and looked for reporting guidelines but couldn't find anything, so apologies upfront of this is missing anything or has an obvious fix!\r\n\r\nThe following code block (with language html passed in) incorrectly identifies the embedded script block as actionscript rather than javascript (both ECMAScripts though, so I can see why). Per the HTML5 spec, any script tag lacking a `type` attribute should be considered Javascript, I think.\r\n\r\n```html\r\n<!-- index.html -->\r\n<html>\r\n  <head>\r\n    <!-- Do _not_  rely on this URL in production. Use only during development.  -->\r\n    <script src=\"//netflix.github.io/falcor/build/falcor.browser.js\"></script>\r\n    <script>\r\n      var model = new falcor.Model({source: new falcor.HttpDataSource('/model.json') });\r\n\r\n      // retrieve the \"greeting\" key from the root of the Virtual JSON resource\r\n      model.\r\n        get(\"greeting\").\r\n        then(function(response) {\r\n          document.write(response.json.greeting);\r\n        });\r\n    </script>\r\n  </head>\r\n  <body>\r\n  </body>\r\n</html>\r\n```\r\n\r\nthanks!"}}