Skip to content

Commit

Permalink
* xover.dom.combine - script.textContent cambia por script.innerHTML
Browse files Browse the repository at this point in the history
  • Loading branch information
uriel-online committed Mar 26, 2024
1 parent f66e1f1 commit 4bb3bc4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xo.js
Original file line number Diff line number Diff line change
Expand Up @@ -9434,8 +9434,8 @@ xover.dom.combine = async function (target, new_node) {
}
targetDocument.head.appendChild(new_element);
}
} else if (!script.getAttribute("src") && script.textContent) {
script.textContent = xover.string.htmlDecode(script.textContent); //Cuando el método de output es html, algunas /entidades /se pueden codificar. Si el output es xml las envía corregidas
} else if (!script.getAttribute("src") && script.innerHTML) {
script.innerHTML = xover.string.htmlDecode(script.innerHTML); //Cuando el método de output es html, algunas /entidades /se pueden codificar. Si el output es xml las envía corregidas
if (script.hasAttribute("defer") || script.hasAttribute("async") || script.selectSingleNode(`self::html:style`)) {
if (![...targetDocument.documentElement.querySelectorAll(script.tagName)].find(node => node.isEqualNode(script))) {
targetDocument.documentElement.appendChild(script);
Expand Down

0 comments on commit 4bb3bc4

Please sign in to comment.