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.

Regression from 1.2.0rc1: ng-include 'bugs' href/ng-href in an anchor element #3793

Closed
@sdenier

Description

@sdenier

When I put a ng-include directive directly inside an a element, I get the following error in the console:
TypeError: Object #<Comment> has no method 'setAttribute'

For example:

      <a ng-href="#/{{href}}" ng-include="'link.html'"></a>
      <a href="#/{{href}}" ng-include="'link.html'"></a>

In the first case the element is not displayed as a link (as href is not set).

See Plunker http://plnkr.co/edit/LWa2asKqAxUYBtZL23YE?p=preview

At first I thought I was dealing with ng-include issues #3584 or #3573 . However, after testing this issue does not appear in 1.2.0rc1 and previous releases.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions