{"action":"created","issue":{"url":"https://api.github.com/repos/aurelia/templating/issues/29","labels_url":"https://api.github.com/repos/aurelia/templating/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/aurelia/templating/issues/29/comments","events_url":"https://api.github.com/repos/aurelia/templating/issues/29/events","html_url":"https://github.com/aurelia/templating/issues/29","id":59570160,"number":29,"title":"Exception if `script` tags are outside of `amelia-app` element","user":{"login":"mickeyvip","id":220427,"avatar_url":"https://avatars.githubusercontent.com/u/220427?v=3","gravatar_id":"","url":"https://api.github.com/users/mickeyvip","html_url":"https://github.com/mickeyvip","followers_url":"https://api.github.com/users/mickeyvip/followers","following_url":"https://api.github.com/users/mickeyvip/following{/other_user}","gists_url":"https://api.github.com/users/mickeyvip/gists{/gist_id}","starred_url":"https://api.github.com/users/mickeyvip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mickeyvip/subscriptions","organizations_url":"https://api.github.com/users/mickeyvip/orgs","repos_url":"https://api.github.com/users/mickeyvip/repos","events_url":"https://api.github.com/users/mickeyvip/events{/privacy}","received_events_url":"https://api.github.com/users/mickeyvip/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aurelia/templating/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-02T23:36:02Z","updated_at":"2015-03-17T05:59:30Z","closed_at":"2015-03-17T05:59:30Z","body":"If the `script` tags are outside of `amelia-app` element - there is an exception:\r\n\r\n    Uncaught TypeError: Cannot read property 'nextElementSibling' of null\r\n\r\n`HTML` which produces the exception:\r\n\r\n```html\r\n<!DOCTYPE html>\r\n<html>\r\n<head>\r\n  <title>Aurelia</title>\r\n</head>\r\n<body>\r\n  <div aurelia-app></div>\r\n  <script src=\"jspm_packages/system.js\"></script>\r\n  <script src=\"config.js\"></script>\r\n  <script type=\"text/javascript\">System.import('aurelia-bootstrapper');</script>\r\n</body>\r\n</html>\r\n```\r\n\r\nand those are `html`s which do not cause the exception:\r\n\r\n```html\r\n<!DOCTYPE html>\r\n<html>\r\n<head>\r\n  <title>Aurelia</title>\r\n</head>\r\n<body>\r\n  <div aurelia-app>\r\n    <script src=\"jspm_packages/system.js\"></script>\r\n    <script src=\"config.js\"></script>\r\n    <script type=\"text/javascript\">System.import('aurelia-bootstrapper');</script>\r\n  </div>\r\n</body>\r\n</html>\r\n```\r\n\r\n```html\r\n<!DOCTYPE html>\r\n<html>\r\n<head>\r\n  <title>Aurelia</title>\r\n</head>\r\n<body aurelia-app>\r\n  <script src=\"jspm_packages/system.js\"></script>\r\n  <script src=\"config.js\"></script>\r\n  <script type=\"text/javascript\">System.import('aurelia-bootstrapper');</script>\r\n</body>\r\n</html>\r\n```"},"comment":{"url":"https://api.github.com/repos/aurelia/templating/issues/comments/82126659","html_url":"https://github.com/aurelia/templating/issues/29#issuecomment-82126659","issue_url":"https://api.github.com/repos/aurelia/templating/issues/29","id":82126659,"user":{"login":"EisenbergEffect","id":131485,"avatar_url":"https://avatars.githubusercontent.com/u/131485?v=3","gravatar_id":"","url":"https://api.github.com/users/EisenbergEffect","html_url":"https://github.com/EisenbergEffect","followers_url":"https://api.github.com/users/EisenbergEffect/followers","following_url":"https://api.github.com/users/EisenbergEffect/following{/other_user}","gists_url":"https://api.github.com/users/EisenbergEffect/gists{/gist_id}","starred_url":"https://api.github.com/users/EisenbergEffect/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EisenbergEffect/subscriptions","organizations_url":"https://api.github.com/users/EisenbergEffect/orgs","repos_url":"https://api.github.com/users/EisenbergEffect/repos","events_url":"https://api.github.com/users/EisenbergEffect/events{/privacy}","received_events_url":"https://api.github.com/users/EisenbergEffect/received_events","type":"User","site_admin":false},"created_at":"2015-03-17T05:59:30Z","updated_at":"2015-03-17T05:59:30Z","body":"Fixed in master. Going out in next release."}}