Explorar o código

prevent removing HEAD tag when saving selection

Gildas %!s(int64=7) %!d(string=hai) anos
pai
achega
c402ee8902
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/single-file/single-file-core.js

+ 1 - 1
lib/single-file/single-file-core.js

@@ -976,7 +976,7 @@ this.SingleFileCore = this.SingleFileCore || (() => {
 					});
 				}
 				element = element.parentElement;
-				if (element && element.parentElement && element.parentElement.tagName != "BODY") {
+				if (element && element.parentElement && element.parentElement.tagName != "BODY" && element.parentElement.tagName != "HTML") {
 					isolateParentElements(element.parentElement, element);
 				}
 			}