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
Description
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:
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.