It works fine. You could test it on the example page.

As far as I understand it `attr` only contains normal or interpolated strings. But you're right, the [documentation](http://docs.angularjs.org/api/ng.$compile.directive.Attributes) isn't very clear ob this subject.