Skip to content

Commit 51ff538

Browse files
authored
Update VIHTML.js
1 parent 3ec6bc5 commit 51ff538

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

VIHTML.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,19 +59,17 @@ function convertCustomHTML(config) {
5959
}
6060

6161
const parent = el.parentNode;
62-
62+
6363
if (voidElements.includes(newTagName)) {
6464
parent.insertBefore(newEl, el);
65-
65+
6666
let insertPoint = newEl.nextSibling;
6767

6868
while (el.firstChild) {
6969
parent.insertBefore(el.firstChild, insertPoint);
7070
}
71-
71+
7272
el.remove();
73-
}
74-
7573
} else {
7674
while (el.firstChild) {
7775
newEl.appendChild(el.firstChild);

0 commit comments

Comments
 (0)