XF2.3 XF.setupHtmlInsert() does not handle strings arguments as XF2.3

X

Xon

Guest
Member
This javacsript works in XF2.2 (it replaces children with the word "ignore") but fails in XF2.3, as XF.createElementFromString returns null instead of the expected text node.
JavaScript:

Code:
this.field = this.target || this.$target.get(0);
...
const html = "ignore";
XF.setupHtmlInsert(html, (html) =>
{
    if (html.jquery) {
        html = html.get(0);
    }
    this.field.replaceChildren(html);
});
XF2.3 XF.setupHtmlInsert() does not handle strings arguments as XF2.3

free plugins
minecraft paid for free
mcmarket
mc-market
free minecraft paid plugins
free minecraft plugins
spigotmc
SpigotMC
aac free
ewg free
Minecraft Premium Plugins
ewg free download
litebans free
epicworldgenerator free
free schematics
leaked schematics minecraft
schematics
schematics leaked
schematics free
minecraft schematics free
paid minecraft schematics free
paid minecraft schematics for free
free cracked plugins
free cracked minecraft plugins
plugins
featherboard download
featherboard plugin download
antiaura download
xenforo leaked
xenforo for free
xenforo addons
 
BlackSpigot General Chat
Rules Help Users
    RealNotSound @ RealNotSound: Click on the “version history” tab of a resource to view older versiona @Dekomori...
    Top