javascript - Can i force webcomponents.js to re-parse the DOM on Firefox? -


well, need re-parse @ specific time.

why?

i dynamically add component , doesn't "polyfilled" if know mean. stays this:

<div id="componente" allowfullscreen=""><viva-card1></viva-card1></div> 

but viva-card have stuff , prototype etc, etc. doesn't show on firefox.

yes, can force webcomponents.js synchronously upgrade elements:

webcomponents.upgradeall(document.queryselector('#componente'));

this synchronously upgrade entire tree, starting #componente (if it's component).

for more information, see webcomponentsjs/issues/#169.


Comments

Popular posts from this blog

javascript - IndexedDB error: Uncaught DataCloneError: Failed to execute 'put' on 'IDBObjectStore': An object could not be cloned -

amazon web services - When using Cognito credentials with AWS in a browser (javascript), keep getting "missing credentials" error -

c# - How to set the datatextfield value instead of the value on a drop down list? -