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.

ng-attr cannot add attributes that end in "-start" #6574

Closed
@mattiash

Description

@mattiash

I am generating svg from one of my directives. I need to add marker-start and marker-end attributes using ng-attr.

The following snippet works fine:

  <path ng-attr-marker-end="{{line.markerEnd}}">...</path>

It generates a marker-end attribute as expected.

However, the following snippet does not work:

  <path ng-attr-marker-start="{{line.markerStart}}">...</path>

It does not generate a marker-start attribute, but generates a marker attribute instead.

The same behaviour can be observed in the following snippet:

http://jsfiddle.net/t49Xa/2/

I discovered the bug in Angular 1.2.14 and I have also reproduced it in Angular 1.2.1. The bug exists both with Chrome 33.0.1750.146 and Firefox 27.0.1.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions