From a393f84fa417b02e20275ef3e374c61db3d95a81 Mon Sep 17 00:00:00 2001 From: Marc Laval Date: Thu, 21 May 2015 11:48:51 +0200 Subject: [PATCH] fix(browser_adapter): element.matches only available with prefix (IE11) --- modules/angular2/src/dom/browser_adapter.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/angular2/src/dom/browser_adapter.ts b/modules/angular2/src/dom/browser_adapter.ts index fa9aca43f6..81f9b4e94f 100644 --- a/modules/angular2/src/dom/browser_adapter.ts +++ b/modules/angular2/src/dom/browser_adapter.ts @@ -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";