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.
Inconsistent behaviour on IE8 #4029
Closed
Description
I'm not sure if this is a supported case, but I can use a directive to merge attributes into a DOM element, so given
<input class="typeahead-input" name="query" placeholder="Search" required>
and
angular.module('myapp').directive('typeaheadInput', ["$timeout", function($timeout) {
return {
restrict: "EAC",
replace: true,
template: '<input autocomplete="off" ng-model="term" ng-change="query()">',
link: function(scope, element, attrs, controller) {
...
}
}
});
I'll get this in the DOM:
<input autocomplete="off" ng-model="term" ng-change="query()" class="typeahead-input" name="query" placeholder="Search" required="required">
This is handy because the directive can "plug in" the ng-model and ng-change directives on my behalf.
However, in IE8 I get an unhelpful error: "This command is not supported.undefined". Sigh.
Am I doing something stupid (most likely), or is this a bug?
(This is all with Angular 1.2.0-rc.2.)