Skip to content
This repository was archived by the owner on Sep 20, 2019. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 2 additions & 2 deletions webcomponents-hi-sd-ce.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion webcomponents-hi-sd-ce.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions webcomponents-lite.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion webcomponents-lite.js.map

Large diffs are not rendered by default.

7 changes: 5 additions & 2 deletions webcomponents-loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,16 @@
if (!('import' in document.createElement('link'))) {
polyfills.push('hi');
}
if (!('attachShadow' in Element.prototype) || (window.ShadyDOM && window.ShadyDOM.force)) {
if (!('attachShadow' in Element.prototype && 'getRootNode' in Element.prototype) ||
(window.ShadyDOM && window.ShadyDOM.force)) {
polyfills.push('sd');
}
if (!window.customElements || window.customElements.forcePolyfill) {
polyfills.push('ce');
}
if (!('content' in document.createElement('template')) || !window.Promise) {
if (!('content' in document.createElement('template')) || !window.Promise ||
// Edge has broken fragment cloning which means you cannot clone template.content
!(document.createDocumentFragment().cloneNode() instanceof DocumentFragment)) {
polyfills.push('pf');
}

Expand Down
2 changes: 1 addition & 1 deletion webcomponents-sd-ce.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion webcomponents-sd-ce.js.map

Large diffs are not rendered by default.