{"action":"created","issue":{"url":"https://api.github.com/repos/vuejs/vue/issues/2253","labels_url":"https://api.github.com/repos/vuejs/vue/issues/2253/labels{/name}","comments_url":"https://api.github.com/repos/vuejs/vue/issues/2253/comments","events_url":"https://api.github.com/repos/vuejs/vue/issues/2253/events","html_url":"https://github.com/vuejs/vue/issues/2253","id":129541216,"number":2253,"title":"Including comment in template body breaks prop inheritance","user":{"login":"efc-awebb","id":6052387,"avatar_url":"https://avatars.githubusercontent.com/u/6052387?v=3","gravatar_id":"","url":"https://api.github.com/users/efc-awebb","html_url":"https://github.com/efc-awebb","followers_url":"https://api.github.com/users/efc-awebb/followers","following_url":"https://api.github.com/users/efc-awebb/following{/other_user}","gists_url":"https://api.github.com/users/efc-awebb/gists{/gist_id}","starred_url":"https://api.github.com/users/efc-awebb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/efc-awebb/subscriptions","organizations_url":"https://api.github.com/users/efc-awebb/orgs","repos_url":"https://api.github.com/users/efc-awebb/repos","events_url":"https://api.github.com/users/efc-awebb/events{/privacy}","received_events_url":"https://api.github.com/users/efc-awebb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-28T18:47:47Z","updated_at":"2016-01-28T20:12:01Z","closed_at":null,"body":"Was having a world of trouble getting prop inheritance to work between a template and its instance (with the `class` prop specifically). Turns out that having comments in the code breaks this behavior.\r\n\r\nPresumably an issue of trying to apply them to the first node in the template's element tree, regardless of whether it is a CommentNode.\r\n\r\n<script src=\"https://gist.github.com/efc-awebb/bc6b4bccc2d9c426f20f.js\"></script>"},"comment":{"url":"https://api.github.com/repos/vuejs/vue/issues/comments/176382616","html_url":"https://github.com/vuejs/vue/issues/2253#issuecomment-176382616","issue_url":"https://api.github.com/repos/vuejs/vue/issues/2253","id":176382616,"user":{"login":"jsiebach","id":9845442,"avatar_url":"https://avatars.githubusercontent.com/u/9845442?v=3","gravatar_id":"","url":"https://api.github.com/users/jsiebach","html_url":"https://github.com/jsiebach","followers_url":"https://api.github.com/users/jsiebach/followers","following_url":"https://api.github.com/users/jsiebach/following{/other_user}","gists_url":"https://api.github.com/users/jsiebach/gists{/gist_id}","starred_url":"https://api.github.com/users/jsiebach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsiebach/subscriptions","organizations_url":"https://api.github.com/users/jsiebach/orgs","repos_url":"https://api.github.com/users/jsiebach/repos","events_url":"https://api.github.com/users/jsiebach/events{/privacy}","received_events_url":"https://api.github.com/users/jsiebach/received_events","type":"User","site_admin":false},"created_at":"2016-01-28T20:12:01Z","updated_at":"2016-01-28T20:12:01Z","body":"Comments are considered nodes, and therefore by having a comment as well as a div in the template you've created a fragment instance (a template with multiple nodes).  You can read about the disadvantages of fragment instances [here](http://vuejs.org/guide/components.html#Fragment_Instance), one of which is no prop attributes are accepted.  You can solve it by moving your comment inside the div\r\n\r\n```\r\n<template>\r\n\t\r\n\t<div>\r\n        <!-- Comment here is ok -->\r\n\t\t<slot></slot>\r\n\t</div>\r\n</template>\r\n```"}}