From e53d666ab6ee3f4f0c29700e439574b8d67d6953 Mon Sep 17 00:00:00 2001 From: Steve Orvell Date: Thu, 15 Aug 2013 15:59:56 -0700 Subject: [PATCH] Use native ShadowDOM by default only when it's available unprefixed. This helps ensure a more complete native implementation in Chrome. --- platform.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform.js b/platform.js index 65aa67a..a440ee1 100644 --- a/platform.js +++ b/platform.js @@ -17,7 +17,7 @@ function processFlags(flags) { // truthy value for any of these flags, or failure to detect native // ShadowDOM, results in polyfill flags.shadow = (flags.shadowdom || flags.shadow || flags.polyfill || - !HTMLElement.prototype.webkitCreateShadowRoot) && 'polyfill'; + !HTMLElement.prototype.createShadowRoot) && 'polyfill'; var ShadowDOMNative = [ 'src/patches-shadowdom-native.js'