{"action":"created","issue":{"url":"https://api.github.com/repos/yyx990803/vue/issues/1100","labels_url":"https://api.github.com/repos/yyx990803/vue/issues/1100/labels{/name}","comments_url":"https://api.github.com/repos/yyx990803/vue/issues/1100/comments","events_url":"https://api.github.com/repos/yyx990803/vue/issues/1100/events","html_url":"https://github.com/yyx990803/vue/issues/1100","id":98082214,"number":1100,"title":"merging class attribute of svg component","user":{"login":"fenivana","id":11750532,"avatar_url":"https://avatars.githubusercontent.com/u/11750532?v=3","gravatar_id":"","url":"https://api.github.com/users/fenivana","html_url":"https://github.com/fenivana","followers_url":"https://api.github.com/users/fenivana/followers","following_url":"https://api.github.com/users/fenivana/following{/other_user}","gists_url":"https://api.github.com/users/fenivana/gists{/gist_id}","starred_url":"https://api.github.com/users/fenivana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fenivana/subscriptions","organizations_url":"https://api.github.com/users/fenivana/orgs","repos_url":"https://api.github.com/users/fenivana/repos","events_url":"https://api.github.com/users/fenivana/events{/privacy}","received_events_url":"https://api.github.com/users/fenivana/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-30T04:17:06Z","updated_at":"2015-07-30T11:58:34Z","closed_at":"2015-07-30T11:58:34Z","body":"```js\r\n<!DOCTYPE html>\r\n<html>\r\n<body>\r\n  <icon-check class=\"foo\"></icon-check>\r\n  <script src=\"node_modules/vue/dist/vue.js\"></script>\r\n  <script>\r\n    Vue.component('icon-check', {\r\n      template: '<svg class=\"icon-check\" viewBox=\"0 0 14 11\" xmlns=\"http://www.w3.org/2000/svg\"><path fill=\"#15CC87\" d=\"M1 6L0 7l4 4L14 1l-1-1-9 9-3-3z\"/></svg>'\r\n    });\r\n    new Vue({\r\n      el: 'html'\r\n    });\r\n  </script>\r\n</body>\r\n</html>\r\n```\r\n\r\nResult:\r\n```html\r\n<svg class=\"icon-check\" viewBox=\"0 0 14 11\" xmlns=\"http://www.w3.org/2000/svg\"><path fill=\"#15CC87\" d=\"M1 6L0 7l4 4L14 1l-1-1-9 9-3-3z\"></path></svg>\r\n```\r\n\r\nBTW, \"If both nodes have the same plain attribute, the template root node will take priority.\", I think let instance override template default attributes will be more flexible."},"comment":{"url":"https://api.github.com/repos/yyx990803/vue/issues/comments/126293999","html_url":"https://github.com/yyx990803/vue/issues/1100#issuecomment-126293999","issue_url":"https://api.github.com/repos/yyx990803/vue/issues/1100","id":126293999,"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":"2015-07-30T11:58:34Z","updated_at":"2015-07-30T11:58:34Z","body":"duplicate of https://github.com/yyx990803/vue/issues/1093"}}