Skip to content

css :first-child selector will not work when using *ng-for #4805

@rolandjitsu

Description

@rolandjitsu

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:

<ul>
    <script></script>
    <li></li>
    <li></li>
    <li></li>
</ul>

Probably 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort1: hourshelp wantedAn issue that is suitable for a community contributor (based on its complexity/scope).type: bug/fix

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions