|
|
@@ -709,9 +709,8 @@ this.SingleFileCore = this.SingleFileCore || (() => {
|
|
|
insertShadowRootContents() {
|
|
|
if (this.options.shadowRootContents) {
|
|
|
this.doc.querySelectorAll("[" + DocUtil.shadowRootAttributeName(this.options.sessionId) + "]").forEach((element, elementIndex) => {
|
|
|
- const DOMParser = DocUtil.getParser();
|
|
|
const elementInfo = this.options.shadowRootContents[elementIndex];
|
|
|
- if (DOMParser && elementInfo) {
|
|
|
+ if (elementInfo) {
|
|
|
const frameElement = this.doc.createElement("iframe");
|
|
|
frameElement.setAttribute("style", "all:initial!important;border:0!important;width:100%!important;height:" + elementInfo.height + "px!important");
|
|
|
const windowId = "shadow-" + this.options.framesData.length;
|