Explorar el Código

added mode and delegatesFocus properties in shadowRoots data

Gildas hace 6 años
padre
commit
7959f067ba
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      lib/single-file/single-file-helper.js

+ 2 - 0
lib/single-file/single-file-helper.js

@@ -145,6 +145,8 @@ this.singlefile.lib.helper = this.singlefile.lib.helper || (() => {
 				data.shadowRoots.push(shadowRootInfo);
 				getElementsInfo(win, doc, element.shadowRoot, options, data, elementHidden);
 				shadowRootInfo.content = element.shadowRoot.innerHTML;
+				shadowRootInfo.delegatesFocus = element.shadowRoot.delegatesFocus;
+				shadowRootInfo.mode = element.shadowRoot.mode;
 			}
 			getElementsInfo(win, doc, element, options, data, elementHidden);
 		});