Skip to content

Commit

Permalink
add HTMLTemplateElement as an available polyfill
Browse files Browse the repository at this point in the history
  • Loading branch information
nicksrandall authored and JakeChampion committed Jul 4, 2019
1 parent a187030 commit 845eef7
Show file tree
Hide file tree
Showing 6 changed files with 618 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ polyfills/WebAnimations/polyfill.js
polyfills/_TypedArray/polyfill.js
polyfills/atob/polyfill.js
polyfills/fetch/polyfill.js
polyfills/HTMLTemplateElement/polyfill.js
.nyc_output/
5 changes: 5 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
},
"dependencies": {
"@financial-times/polyfill-useragent-normaliser": "^1.1.0",
"@webcomponents/template": "^1.4.0",
"Base64": "^1.0.0",
"audio-context-polyfill": "^1.0.0",
"diff": "1.4.0",
Expand Down
32 changes: 32 additions & 0 deletions polyfills/HTMLTemplateElement/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"browsers": {
"edge": "<12",
"edge_mob": "<12",
"ie": "9 - *",
"ie_mob": "10 - *",
"firefox": "4 - 22",
"opera": "10 - 22",
"safari": "6 - 9",
"chrome": "* - 35",
"ios_saf": "* - 9",
"firefox_mob": "<67",
"bb": "7 - 10",
"android": "<67"
},
"dependencies": [
"DocumentFragment",
"document.querySelector",
"Object.defineProperties",
"Object.getOwnPropertyDescriptor",
"Object.defineProperty",
"Event"
],
"license": "BSD-3-Clause",
"spec": "https://html.spec.whatwg.org/multipage/scripting.html#the-template-element",
"repo": "https://github.com/webcomponents/polyfills/tree/master/packages/template",
"docs": "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/template",
"install": {
"module": "@webcomponents/template",
"paths": ["template.js"]
}
}
1 change: 1 addition & 0 deletions polyfills/HTMLTemplateElement/detect.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
'HTMLTemplateElement' in this

0 comments on commit 845eef7

Please sign in to comment.