|
@@ -1135,8 +1135,12 @@ this.SingleFileCore = this.SingleFileCore || (() => {
|
|
|
if (frameElement.tagName == "OBJECT") {
|
|
if (frameElement.tagName == "OBJECT") {
|
|
|
frameElement.setAttribute("data", "data:text/html," + content);
|
|
frameElement.setAttribute("data", "data:text/html," + content);
|
|
|
} else {
|
|
} else {
|
|
|
- frameElement.setAttribute("srcdoc", content);
|
|
|
|
|
- frameElement.removeAttribute("src");
|
|
|
|
|
|
|
+ if (frameElement.tagName == "FRAME") {
|
|
|
|
|
+ frameElement.setAttribute("src", "data:text/html," + content.replace(/#/g, "%23"));
|
|
|
|
|
+ } else {
|
|
|
|
|
+ frameElement.setAttribute("srcdoc", content);
|
|
|
|
|
+ frameElement.removeAttribute("src");
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|