{"action":"opened","issue":{"url":"https://api.github.com/repos/sveltejs/svelte/issues/63","repository_url":"https://api.github.com/repos/sveltejs/svelte","labels_url":"https://api.github.com/repos/sveltejs/svelte/issues/63/labels{/name}","comments_url":"https://api.github.com/repos/sveltejs/svelte/issues/63/comments","events_url":"https://api.github.com/repos/sveltejs/svelte/issues/63/events","html_url":"https://github.com/sveltejs/svelte/issues/63","id":192609082,"number":63,"title":"compiler breaks when compiling an input element","user":{"login":"seriousManual","id":1330022,"avatar_url":"https://avatars.githubusercontent.com/u/1330022?v=3","gravatar_id":"","url":"https://api.github.com/users/seriousManual","html_url":"https://github.com/seriousManual","followers_url":"https://api.github.com/users/seriousManual/followers","following_url":"https://api.github.com/users/seriousManual/following{/other_user}","gists_url":"https://api.github.com/users/seriousManual/gists{/gist_id}","starred_url":"https://api.github.com/users/seriousManual/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seriousManual/subscriptions","organizations_url":"https://api.github.com/users/seriousManual/orgs","repos_url":"https://api.github.com/users/seriousManual/repos","events_url":"https://api.github.com/users/seriousManual/events{/privacy}","received_events_url":"https://api.github.com/users/seriousManual/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-30T16:17:06Z","updated_at":"2016-11-30T16:17:06Z","closed_at":null,"body":"svelte-cli version 1.0.2\r\n\r\nconsider the following template:\r\n````\r\n<input type=\"text\" value=\"\">\r\n````\r\n\r\nwhen compiling via \r\n````\r\nsvelte compile --format iife helloWorld.html > helloWorld.js\r\n````\r\n\r\nthe compiler crashes:\r\n\r\n````\r\nmer@ALANIS:/mnt/d/programming/sveltetest$ svelte compile --format iife helloWorld.html > helloWorld.js\r\ncompiling helloWorld.html...\r\n/home/mer/.nvm/versions/node/v6.3.1/lib/node_modules/svelte-cli/node_modules/svelte/dist/svelte.js:6844\r\n                                const value = ( attribute.value[0].type === 'Text' ? '' : `\"\" + ` ) + (\r\n                                                                  ^\r\n\r\nTypeError: Cannot read property 'type' of undefined\r\n    at node.attributes.forEach.attribute (/home/mer/.nvm/versions/node/v6.3.1/lib/node_modules/svelte-cli/node_modules/svelte/dist/svelte.js:6844:39)\r\n    at Array.forEach (native)\r\n    at addElementAttributes (/home/mer/.nvm/versions/node/v6.3.1/lib/node_modules/svelte-cli/node_modules/svelte/dist/svelte.js:6772:18)\r\n    at Object.enter (/home/mer/.nvm/versions/node/v6.3.1/lib/node_modules/svelte-cli/node_modules/svelte/dist/svelte.js:7034:4)\r\n    at visit (/home/mer/.nvm/versions/node/v6.3.1/lib/node_modules/svelte-cli/node_modules/svelte/dist/svelte.js:7512:33)\r\n    at Array.forEach (native)\r\n    at generate (/home/mer/.nvm/versions/node/v6.3.1/lib/node_modules/svelte-cli/node_modules/svelte/dist/svelte.js:7605:23)\r\n    at Object.compile (/home/mer/.nvm/versions/node/v6.3.1/lib/node_modules/svelte-cli/node_modules/svelte/dist/svelte.js:7907:9)\r\n    at compileFile (/home/mer/.nvm/versions/node/v6.3.1/lib/node_modules/svelte-cli/bin.js:611:26)\r\n    at compile$1 (/home/mer/.nvm/versions/node/v6.3.1/lib/node_modules/svelte-cli/bin.js:576:3)\r\nmer@ALANIS:/mnt/d/programming/sveltetest$\r\n````"}}
{"actor":{"display_login":"seriousManual"}}