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

Duplicated style attribute in directive with template and replace: true #6239

Closed
vrutberg opened this issue Feb 13, 2014 · 4 comments
Closed

Comments

@vrutberg
Copy link

Browser: Chrome
Component: $compile
Regression: no

Plunkr that demonstrates the problem: http://plnkr.co/edit/UMhmjGS3XW84d7zctujo?p=preview

@shidhincr
Copy link

Looks like it happens only when the replace: true is given

@vrutberg
Copy link
Author

Yes, and my suspicion is that lines 1634-1635 of src/ng/compile.js (https://github.com/angular/angular.js/blob/master/src/ng/compile.js#L1634) are responsible for the behaviour.

@shidhincr
Copy link

Apparently this doesn't happen with the interpolated values inside the style attribute. I've checked the compileSpecs.js and saw that there's a unit test written for checking interpolated style attributes.

Plunker: http://plnkr.co/edit/2ZPpNfLjqnmshQxtnTgF?p=preview

@Narretz
Copy link
Contributor

Narretz commented Jun 3, 2016

Basically the same as #5695
Note that this is unlikely to get fixed, since replace is deprecated.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants