Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

custom directives with self closing tags capture tag siblings #1953

Closed
@lgalfaso

Description

@lgalfaso

When using a directive of type element that at the template is used with self-closing tags then the siblings following the tag are removed when the directive is processed.
E.g

Say there is a directive named 'foo', and the template is

<div>
  <foo />
  <span>Sibling</span>
</div>

will remove Sibling from the end result.

I experience this with Chrome 24.0.1312.57 and Safari 6.0.2 (8536.26.17) both on Mac

Workaround: replace <foo /> with <foo></foo>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions