提交 c6cfc7c6 编写于 作者: Q qiang

fix(App): page root node remove/add (question/155057)

上级 d1c70f29
...@@ -5541,8 +5541,8 @@ var Comment = /*@__PURE__*/(function (Node$$1) { ...@@ -5541,8 +5541,8 @@ var Comment = /*@__PURE__*/(function (Node$$1) {
function appendBody(doc, node, before) { function appendBody(doc, node, before) {
var documentElement = doc.documentElement; var documentElement = doc.documentElement;
// fix append comment
if (documentElement.pureChildren.length > 0 || node.parentNode) { if ((documentElement.pureChildren.length > 0 && node.nodeType === 1) || node.parentNode) {
return return
} }
var children = documentElement.children; var children = documentElement.children;
......
...@@ -4794,8 +4794,8 @@ var Comment = /*@__PURE__*/(function (Node$$1) { ...@@ -4794,8 +4794,8 @@ var Comment = /*@__PURE__*/(function (Node$$1) {
function appendBody(doc, node, before) { function appendBody(doc, node, before) {
var documentElement = doc.documentElement; var documentElement = doc.documentElement;
// fix append comment
if (documentElement.pureChildren.length > 0 || node.parentNode) { if ((documentElement.pureChildren.length > 0 && node.nodeType === 1) || node.parentNode) {
return return
} }
var children = documentElement.children; var children = documentElement.children;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册