{"action":"created","issue":{"url":"https://api.github.com/repos/vuejs/vue-loader/issues/130","labels_url":"https://api.github.com/repos/vuejs/vue-loader/issues/130/labels{/name}","comments_url":"https://api.github.com/repos/vuejs/vue-loader/issues/130/comments","events_url":"https://api.github.com/repos/vuejs/vue-loader/issues/130/events","html_url":"https://github.com/vuejs/vue-loader/issues/130","id":126316155,"number":130,"title":"Error with vue-template-validator and empty attributes","user":{"login":"carlosingles","id":1631343,"avatar_url":"https://avatars.githubusercontent.com/u/1631343?v=3","gravatar_id":"","url":"https://api.github.com/users/carlosingles","html_url":"https://github.com/carlosingles","followers_url":"https://api.github.com/users/carlosingles/followers","following_url":"https://api.github.com/users/carlosingles/following{/other_user}","gists_url":"https://api.github.com/users/carlosingles/gists{/gist_id}","starred_url":"https://api.github.com/users/carlosingles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carlosingles/subscriptions","organizations_url":"https://api.github.com/users/carlosingles/orgs","repos_url":"https://api.github.com/users/carlosingles/repos","events_url":"https://api.github.com/users/carlosingles/events{/privacy}","received_events_url":"https://api.github.com/users/carlosingles/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-13T01:07:04Z","updated_at":"2016-01-13T05:11:37Z","closed_at":null,"body":"I'm having problems with `vue-loader@8.0.2` and compiling my *.vue files, error below:\r\n\r\n```\r\nModule build failed: TypeError: Cannot read property 'startOffset' of undefined\r\n    at ...../node_modules/vue-loader/node_modules/vue-template-validator/lib/rules/camel-case-attr.js:25:37\r\n```\r\n\r\nI investigated my code and found that I was getting this error on any .vue file that had an empty attribute (including directives)\r\n\r\nThe ones I had issues with were `v-el:xxx` (directive) and `multiple` (for `<select>`)\r\n\r\nI was able to fix this by ensuring there was a value for empty attributes, as in:\r\n\r\n`<form v-el:form=\"\">`\r\n\r\nand\r\n\r\n`<select multiple=\"multiple\">`\r\n\r\nI assume this isn't intended behaviour since the docs for Vue state that `v-el` does not expect an expression."},"comment":{"url":"https://api.github.com/repos/vuejs/vue-loader/issues/comments/171169180","html_url":"https://github.com/vuejs/vue-loader/issues/130#issuecomment-171169180","issue_url":"https://api.github.com/repos/vuejs/vue-loader/issues/130","id":171169180,"user":{"login":"yyx990803","id":499550,"avatar_url":"https://avatars.githubusercontent.com/u/499550?v=3","gravatar_id":"","url":"https://api.github.com/users/yyx990803","html_url":"https://github.com/yyx990803","followers_url":"https://api.github.com/users/yyx990803/followers","following_url":"https://api.github.com/users/yyx990803/following{/other_user}","gists_url":"https://api.github.com/users/yyx990803/gists{/gist_id}","starred_url":"https://api.github.com/users/yyx990803/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yyx990803/subscriptions","organizations_url":"https://api.github.com/users/yyx990803/orgs","repos_url":"https://api.github.com/users/yyx990803/repos","events_url":"https://api.github.com/users/yyx990803/events{/privacy}","received_events_url":"https://api.github.com/users/yyx990803/received_events","type":"User","site_admin":false},"created_at":"2016-01-13T05:11:37Z","updated_at":"2016-01-13T05:11:37Z","body":"This is a bug in `parse5` (introduced by me, sadly) which I will submit a PR for."}}