{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular/issues/4805","labels_url":"https://api.github.com/repos/angular/angular/issues/4805/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular/issues/4805/comments","events_url":"https://api.github.com/repos/angular/angular/issues/4805/events","html_url":"https://github.com/angular/angular/issues/4805","id":112019103,"number":4805,"title":"css :first-child selector will not work when using *ng-for","user":{"login":"rolandjitsu","id":1479737,"avatar_url":"https://avatars.githubusercontent.com/u/1479737?v=3","gravatar_id":"","url":"https://api.github.com/users/rolandjitsu","html_url":"https://github.com/rolandjitsu","followers_url":"https://api.github.com/users/rolandjitsu/followers","following_url":"https://api.github.com/users/rolandjitsu/following{/other_user}","gists_url":"https://api.github.com/users/rolandjitsu/gists{/gist_id}","starred_url":"https://api.github.com/users/rolandjitsu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rolandjitsu/subscriptions","organizations_url":"https://api.github.com/users/rolandjitsu/orgs","repos_url":"https://api.github.com/users/rolandjitsu/repos","events_url":"https://api.github.com/users/rolandjitsu/events{/privacy}","received_events_url":"https://api.github.com/users/rolandjitsu/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/angular/angular/labels/comp:%20core/view/compiler","name":"comp: core/view/compiler","color":"c7def8"},{"url":"https://api.github.com/repos/angular/angular/labels/effort1:%20easy%20(hour)","name":"effort1: easy (hour)","color":"bfe5bf"},{"url":"https://api.github.com/repos/angular/angular/labels/hotlist:%20community-help","name":"hotlist: community-help","color":"d4c5f9"},{"url":"https://api.github.com/repos/angular/angular/labels/P2:%20required","name":"P2: required","color":"fad8c7"},{"url":"https://api.github.com/repos/angular/angular/labels/type:%20bug","name":"type: bug","color":"EEEEEE"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-10-18T13:06:26Z","updated_at":"2015-11-04T17:17:40Z","closed_at":null,"body":"It seems like when using `*ng-for=\"item of items\"` to render a list of items, if I want to use the `:first-child` selector it will not work as expected. It looks like right before the first item, there is a `<script></script>` tag inserted, so the rendering ends up as:\r\n```html\r\n<ul>\r\n    <script></script>\r\n    <li></li>\r\n    <li></li>\r\n    <li></li>\r\n</ul>\r\n```\r\nProbably that is intentional, but it should be taken into consideration that this would break the expected behaviour of `:first-child` and a fix for it might be a good idea."},"comment":{"url":"https://api.github.com/repos/angular/angular/issues/comments/153796877","html_url":"https://github.com/angular/angular/issues/4805#issuecomment-153796877","issue_url":"https://api.github.com/repos/angular/angular/issues/4805","id":153796877,"user":{"login":"scatcher","id":1429656,"avatar_url":"https://avatars.githubusercontent.com/u/1429656?v=3","gravatar_id":"","url":"https://api.github.com/users/scatcher","html_url":"https://github.com/scatcher","followers_url":"https://api.github.com/users/scatcher/followers","following_url":"https://api.github.com/users/scatcher/following{/other_user}","gists_url":"https://api.github.com/users/scatcher/gists{/gist_id}","starred_url":"https://api.github.com/users/scatcher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scatcher/subscriptions","organizations_url":"https://api.github.com/users/scatcher/orgs","repos_url":"https://api.github.com/users/scatcher/repos","events_url":"https://api.github.com/users/scatcher/events{/privacy}","received_events_url":"https://api.github.com/users/scatcher/received_events","type":"User","site_admin":false},"created_at":"2015-11-04T17:17:40Z","updated_at":"2015-11-04T17:17:40Z","body":"Just for clarification, we currently have the ability to set additional attributes on the script template anchor.  Is there a situation where we need to be able to retain this functionality?  If not, converting to a comment seems like the right answer."}}