diff --git a/bower.json b/bower.json index 83dd491..0534203 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "aurelia-pal-browser", - "version": "1.3.0", + "version": "1.3.1", "description": "The browser-specific implementation of Aurelia's platform abstraction layer.", "keywords": [ "aurelia", diff --git a/dist/amd/aurelia-pal-browser.js b/dist/amd/aurelia-pal-browser.js index 9ee0e19..33fcf0d 100644 --- a/dist/amd/aurelia-pal-browser.js +++ b/dist/amd/aurelia-pal-browser.js @@ -276,7 +276,11 @@ define(['exports', 'aurelia-pal'], function (exports, _aureliaPal) { var _FEATURE = exports._FEATURE = { shadowDOM: !!HTMLElement.prototype.attachShadow, scopedCSS: 'scoped' in document.createElement('style'), - htmlTemplateElement: 'content' in document.createElement('template'), + htmlTemplateElement: function () { + var d = document.createElement('div'); + d.innerHTML = ''; + return 'content' in d.children[0]; + }(), mutationObserver: !!(window.MutationObserver || window.WebKitMutationObserver), ensureHTMLTemplateElement: function ensureHTMLTemplateElement(t) { return t; diff --git a/dist/aurelia-pal-browser.js b/dist/aurelia-pal-browser.js index 7719f80..623c787 100644 --- a/dist/aurelia-pal-browser.js +++ b/dist/aurelia-pal-browser.js @@ -296,7 +296,11 @@ if (Element && !Element.prototype.matches) { export const _FEATURE = { shadowDOM: !!HTMLElement.prototype.attachShadow, scopedCSS: 'scoped' in document.createElement('style'), - htmlTemplateElement: 'content' in document.createElement('template'), + htmlTemplateElement: (function() { + let d = document.createElement('div'); + d.innerHTML = ''; + return 'content' in d.children[0]; + })(), mutationObserver: !!(window.MutationObserver || window.WebKitMutationObserver), ensureHTMLTemplateElement: t => t }; diff --git a/dist/commonjs/aurelia-pal-browser.js b/dist/commonjs/aurelia-pal-browser.js index a59c3d2..9f38e91 100644 --- a/dist/commonjs/aurelia-pal-browser.js +++ b/dist/commonjs/aurelia-pal-browser.js @@ -274,7 +274,11 @@ if (Element && !Element.prototype.matches) { var _FEATURE = exports._FEATURE = { shadowDOM: !!HTMLElement.prototype.attachShadow, scopedCSS: 'scoped' in document.createElement('style'), - htmlTemplateElement: 'content' in document.createElement('template'), + htmlTemplateElement: function () { + var d = document.createElement('div'); + d.innerHTML = ''; + return 'content' in d.children[0]; + }(), mutationObserver: !!(window.MutationObserver || window.WebKitMutationObserver), ensureHTMLTemplateElement: function ensureHTMLTemplateElement(t) { return t; diff --git a/dist/es2015/aurelia-pal-browser.js b/dist/es2015/aurelia-pal-browser.js index 7c08c62..8b0433f 100644 --- a/dist/es2015/aurelia-pal-browser.js +++ b/dist/es2015/aurelia-pal-browser.js @@ -254,7 +254,11 @@ if (Element && !Element.prototype.matches) { export const _FEATURE = { shadowDOM: !!HTMLElement.prototype.attachShadow, scopedCSS: 'scoped' in document.createElement('style'), - htmlTemplateElement: 'content' in document.createElement('template'), + htmlTemplateElement: function () { + let d = document.createElement('div'); + d.innerHTML = ''; + return 'content' in d.children[0]; + }(), mutationObserver: !!(window.MutationObserver || window.WebKitMutationObserver), ensureHTMLTemplateElement: t => t }; diff --git a/dist/native-modules/aurelia-pal-browser.js b/dist/native-modules/aurelia-pal-browser.js index 9949fe6..eb6f376 100644 --- a/dist/native-modules/aurelia-pal-browser.js +++ b/dist/native-modules/aurelia-pal-browser.js @@ -265,7 +265,11 @@ if (Element && !Element.prototype.matches) { export var _FEATURE = { shadowDOM: !!HTMLElement.prototype.attachShadow, scopedCSS: 'scoped' in document.createElement('style'), - htmlTemplateElement: 'content' in document.createElement('template'), + htmlTemplateElement: function () { + var d = document.createElement('div'); + d.innerHTML = ''; + return 'content' in d.children[0]; + }(), mutationObserver: !!(window.MutationObserver || window.WebKitMutationObserver), ensureHTMLTemplateElement: function ensureHTMLTemplateElement(t) { return t; diff --git a/dist/system/aurelia-pal-browser.js b/dist/system/aurelia-pal-browser.js index 5a257b9..a1675e0 100644 --- a/dist/system/aurelia-pal-browser.js +++ b/dist/system/aurelia-pal-browser.js @@ -319,7 +319,11 @@ System.register(['aurelia-pal'], function (_export, _context) { _export('_FEATURE', _FEATURE = { shadowDOM: !!HTMLElement.prototype.attachShadow, scopedCSS: 'scoped' in document.createElement('style'), - htmlTemplateElement: 'content' in document.createElement('template'), + htmlTemplateElement: function () { + var d = document.createElement('div'); + d.innerHTML = ''; + return 'content' in d.children[0]; + }(), mutationObserver: !!(window.MutationObserver || window.WebKitMutationObserver), ensureHTMLTemplateElement: function ensureHTMLTemplateElement(t) { return t; diff --git a/doc/CHANGELOG.md b/doc/CHANGELOG.md index 976faf1..f05dbf5 100644 --- a/doc/CHANGELOG.md +++ b/doc/CHANGELOG.md @@ -1,3 +1,13 @@ + +## [1.3.1](https://github.com/aurelia/pal-browser/compare/1.3.0...v1.3.1) (2017-12-20) + + +### Bug Fixes + +* **html-template-element:** fix unable to get property querySelectorAll error when using webcomponents-lite in IE11 ([#27](https://github.com/aurelia/pal-browser/issues/27)) ([9e4b62f](https://github.com/aurelia/pal-browser/commit/9e4b62f)) + + + # [1.3.0](https://github.com/aurelia/pal-browser/compare/1.2.1...v1.3.0) (2017-08-22) diff --git a/package.json b/package.json index f99e4ed..c5628b2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "aurelia-pal-browser", - "version": "1.3.0", + "version": "1.3.1", "description": "The browser-specific implementation of Aurelia's platform abstraction layer.", "keywords": [ "aurelia",