امتیازها
113
راهحلها
27
- محل سکونت
- England
- نوشتهها
- 26,276
- تاریخ ثبتنام
- ۱۳۹۹٫۰۴٫۰۶
- پسندها
- 3,286
- سن
- 29
- وب سایت
- xenforo.xyz
- نسخه PHP
- 7.3
- نسخه زنفورو
- xenforo 2.2
This javacsript works in XF2.2 (it replaces children with the word "ignore") but fails in XF2.3, as
JavaScript:
XF.createElementFromString returns null instead of the expected text node.JavaScript:
کد:
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);
});
