|
|
@@ -129,9 +129,8 @@ this.docHelper = this.docHelper || (() => {
|
|
|
}
|
|
|
|
|
|
function getShadowRootContents(elementsInfo) {
|
|
|
- let shadowRootContents;
|
|
|
+ let shadowRootContents, elementIndex = 0;
|
|
|
elementsInfo.forEach((elementInfo, element) => {
|
|
|
- let elementIndex = 0;
|
|
|
if (element.attributes && elementInfo.shadowRoot) {
|
|
|
element.setAttribute(SHADOW_ROOT_ATTRIBUTE_NAME, elementIndex);
|
|
|
elementIndex++;
|