polyfills

HTML Import webcomponents polyfill not working in firefox

ⅰ亾dé卋堺 提交于 2020-01-22 03:13:15
问题 I am trying webcomponents in a sample app. Since some of the specs are not included in some browsers, i tried using polyfill for those. In Mozilla firefox, i tried by enabling the key dom.webcomponents.enabled and adding some polyfills (that are not in browser). I have used HTML Import polyfill from webcomponents.js polyfill. Still HTMLImport is not working in firefox, internet explorer (even with polyfill). (https://github.com/webcomponents/webcomponentsjs) I also tried customElements v1

Problem with Angular Element support in chrome and IE11 simultaneously

微笑、不失礼 提交于 2020-01-21 08:31:04
问题 I have been playing around with Angular Elements and trying to achieve the best browser compatibility possible. However I seem to have hit a dead end, since when I add an IE polyfill for Shadow DOM, it breaks the Element in chrome. Initially I had the error 'Failed to construct HTML element', so I changed the 'target' in my tsconfig.json to es2015/es6. tsconfig.json { "compileOnSave": false, "compilerOptions": { "baseUrl": "./", "outDir": "./dist/out-tsc", "sourceMap": true, "declaration":

Is the scope of Responsive Design worth considering for IE8 as of 2013?

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-14 07:49:11
问题 I still see questions here that pertain to making responsive design work for IE8, or god forbid, IE7. For lack of knowledge of Windows related devices, my immediate thought is that, it would not be worth implementing responsive design for IE8 due to the insignificant amount of mobile devices that would still run IE8 today. And just leave sites as static 1024x768 for this particular browser, as there is little to no reason for responsive design, with the extra painful efforts it requires and

Spread Operator not working for Redux/ES6 based sample

纵然是瞬间 提交于 2020-01-13 09:44:08
问题 I am trying to understand Redux online tutorials that are posted by Dan Abramov. At present I am on the following sample: Reducer composition with Arrays Here is my practice code following the above sample: // Individual TODO Reducer const todoReducer = (state, action) => { switch(action.type) { case 'ADD_TODO': return { id: action.id, text: action.text, completed: false }; case 'TOGGLE_TODO': if (state.id != action.id) return state; // This not working /* return { ...state, completed: !state

TypeError: Unable to get property 'ngMetadataName' of undefined or null reference on IE 10

社会主义新天地 提交于 2020-01-11 07:44:13
问题 In IE 10, I got the following error: (but OK in IE 11) TypeError: Unable to get property 'ngMetadataName' of undefined or null reference The property ngMetadataName has been found in vendor.js . The polyfills.ts is as the following: /******************************************************************************* BROWSER POLYFILLS */ /** IE9, IE10 and IE11 requires all of the following polyfills. **/ import 'core-js/es6/symbol'; import 'core-js/es6/object'; import 'core-js/es6/function';

Polyfills and package.json optionalDependencies

旧巷老猫 提交于 2020-01-06 03:09:21
问题 I'm working on a library that require some polyfills in some environments. Is correct to add the polyfills as optionalDependencies in the package.jso file? 回答1: The usual way is adding them in the dependencies and then in the code at runtime detect if needed and require them. 来源: https://stackoverflow.com/questions/36602912/polyfills-and-package-json-optionaldependencies

Polyfills and package.json optionalDependencies

混江龙づ霸主 提交于 2020-01-06 03:09:02
问题 I'm working on a library that require some polyfills in some environments. Is correct to add the polyfills as optionalDependencies in the package.jso file? 回答1: The usual way is adding them in the dependencies and then in the code at runtime detect if needed and require them. 来源: https://stackoverflow.com/questions/36602912/polyfills-and-package-json-optionaldependencies

Web Components, HTML Imports polyfills not working in Firefox, IE

我与影子孤独终老i 提交于 2020-01-04 15:29:15
问题 I am trying to get Web Components plus HTML Imports to work in Firefox and IE. I followed the instructions as per the Web Components GitHub repo, installed the files via npm, and included it towards the head of my document. I have a custom script that is called in the body of the document. In firefox, the polyfill is loaded dynamically (synchronously) but transforms the script tag in the body from: <script type="module" src="./src/scripts/init.js"></script> to <script src="/components