Skip to content

Commit

Permalink
fix(browser_adapter): element.matches only available with prefix (IE11)
Browse files Browse the repository at this point in the history
  • Loading branch information
marclaval committed May 22, 2015
1 parent 92c2c33 commit a393f84
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/angular2/src/dom/browser_adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,8 @@ setTitle(newTitle: string) {
document.title = newTitle || '';
}
elementMatches(n, selector: string): boolean {
return n instanceof HTMLElement && n.matches(selector);
return n instanceof HTMLElement && n.matches ? n.matches(selector) :
n.msMatchesSelector(selector);
}
isTemplateElement(el: any): boolean {
return el instanceof HTMLElement && el.nodeName == "TEMPLATE";
Expand Down

0 comments on commit a393f84

Please sign in to comment.