{"action":"created","issue":{"url":"https://api.github.com/repos/riot/riot/issues/2218","repository_url":"https://api.github.com/repos/riot/riot","labels_url":"https://api.github.com/repos/riot/riot/issues/2218/labels{/name}","comments_url":"https://api.github.com/repos/riot/riot/issues/2218/comments","events_url":"https://api.github.com/repos/riot/riot/issues/2218/events","html_url":"https://github.com/riot/riot/issues/2218","id":200338096,"number":2218,"title":"type riot/tag not supported by Google Chrome","user":{"login":"PascalLeMerrer","id":873398,"avatar_url":"https://avatars.githubusercontent.com/u/873398?v=3","gravatar_id":"","url":"https://api.github.com/users/PascalLeMerrer","html_url":"https://github.com/PascalLeMerrer","followers_url":"https://api.github.com/users/PascalLeMerrer/followers","following_url":"https://api.github.com/users/PascalLeMerrer/following{/other_user}","gists_url":"https://api.github.com/users/PascalLeMerrer/gists{/gist_id}","starred_url":"https://api.github.com/users/PascalLeMerrer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PascalLeMerrer/subscriptions","organizations_url":"https://api.github.com/users/PascalLeMerrer/orgs","repos_url":"https://api.github.com/users/PascalLeMerrer/repos","events_url":"https://api.github.com/users/PascalLeMerrer/events{/privacy}","received_events_url":"https://api.github.com/users/PascalLeMerrer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-01-12T11:04:02Z","updated_at":"2017-01-12T12:43:52Z","closed_at":null,"body":"1. Describe your issue:\r\n\r\nWhen I include a tag with the type riot/tag\r\n\r\n```\r\n    <script src=\"tags/mytag.tag\" type=\"riot/tag\"></script>\r\n```\r\n\r\nChrome displays a warning:\r\n\r\nFetching scripts with an invalid type/language attributes is deprecated and will be removed in M56, around January 2017. See https://www.chromestatus.com/features/5760718284521472 for more details\r\n\r\nBut if I remove the type, loading the tag generates an error:\r\n```\r\nUncaught SyntaxError: Unexpected token <\r\n```\r\n\r\n\r\n2. Can you reproduce the issue?\r\n\r\nThe issue is visible in the default bug template on PLNKR:\r\n  - [Bug Report Template](http://riotjs.com/examples/plunker/?app=bug-reporter) on plnkr\r\n\r\n3. On which browser/OS does the issue appear?\r\n\r\nGoogle chrome\r\n\r\n4. Which version of Riot does it affect?\r\n\r\nV3\r\n\r\n5. How would you tag this issue?\r\n\r\n  - [ ] Question\r\n  - [x] Bug\r\n  - [ ] Discussion\r\n  - [ ] Feature request\r\n  - [ ] Tip\r\n  - [ ] Enhancement\r\n  - [ ] Performance\r\n"},"comment":{"url":"https://api.github.com/repos/riot/riot/issues/comments/272154109","html_url":"https://github.com/riot/riot/issues/2218#issuecomment-272154109","issue_url":"https://api.github.com/repos/riot/riot/issues/2218","id":272154109,"user":{"login":"PascalLeMerrer","id":873398,"avatar_url":"https://avatars.githubusercontent.com/u/873398?v=3","gravatar_id":"","url":"https://api.github.com/users/PascalLeMerrer","html_url":"https://github.com/PascalLeMerrer","followers_url":"https://api.github.com/users/PascalLeMerrer/followers","following_url":"https://api.github.com/users/PascalLeMerrer/following{/other_user}","gists_url":"https://api.github.com/users/PascalLeMerrer/gists{/gist_id}","starred_url":"https://api.github.com/users/PascalLeMerrer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PascalLeMerrer/subscriptions","organizations_url":"https://api.github.com/users/PascalLeMerrer/orgs","repos_url":"https://api.github.com/users/PascalLeMerrer/repos","events_url":"https://api.github.com/users/PascalLeMerrer/events{/privacy}","received_events_url":"https://api.github.com/users/PascalLeMerrer/received_events","type":"User","site_admin":false},"created_at":"2017-01-12T12:43:52Z","updated_at":"2017-01-12T12:43:52Z","body":"I closed the issue too fast\r\nWhen replacing src with data-src, anohter error occurs:\r\n\r\n```riot+compiler.js:2502 Uncaught TypeError: Cannot read property 'class' of undefined\r\n    at mountTo (riot+compiler.js:2502)\r\n    at pushTagsTo (riot+compiler.js:1888)\r\n    at each (riot+compiler.js:803)\r\n    at pushTagsTo (riot+compiler.js:1893)\r\n    at Object.mount$1 [as mount] (riot+compiler.js:1943)\r\n    at riot+compiler.js:3496\r\n    at compile (riot+compiler.js:3477)\r\n    at Object.mount$$1 [as mount] (riot+compiler.js:3496)\r\n    at mount ((index):56)\r\n    at (index):62\r\n```\r\nThe line 62 in my index is \r\n\r\n```\r\nriot.mount('login')\r\n````\r\n\r\nAnd I loaded the 'login' tag source with:\r\n\r\n```\r\n<script data-src=\"tags/login.tag\" type=\"riot/tag\"></script>\r\n```\r\nWith the src attribute, it works (but I have the Chrome warning)"}}
{"actor":{"display_login":"PascalLeMerrer"}}