Skip to content
This repository has been archived by the owner on Feb 22, 2018. It is now read-only.

feat(ng_bind_html): Configurable sanitizer via injectable NodeValidator. #490

Closed
wants to merge 5 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix failing test.
  • Loading branch information
bgourlie committed Feb 6, 2014
commit 140e8c88918e78aaaaf060672922ed8ed9abc6a9
4 changes: 2 additions & 2 deletions test/directive/ng_bind_html_spec.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ main() {
return validator;
});

inject((Scope scope, Injector injector, Compiler compiler) {
inject((Scope scope, Injector injector, Compiler compiler, DirectiveMap directives) {
var element = $('<div ng-bind-html="htmlVar"></div>');
compiler(element)(injector, element);
compiler(element, directives)(injector, element);
scope.htmlVar = '<a href="http://www.google.com"><b>Google!</b></a>';
scope.$digest();
// Sanitation allows href attributes per injected sanitizer.
Expand Down