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

Commit

Permalink
Use native ShadowDOM by default only when it's available unprefixed. …
Browse files Browse the repository at this point in the history
…This helps ensure a more complete native implementation in Chrome.
  • Loading branch information
sorvell committed Aug 15, 2013
1 parent 4fe7bb6 commit e53d666
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platform.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit e53d666

Please sign in to comment.