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
Post a Comment