https://bugs.kde.org/show_bug.cgi?id=187423 --- Comment #1 from Richard Smith 2009-03-17 17:41:02 --- For reference, here's the code which ext-js uses to emulate insertAdjacentHTML: var N = R.ownerDocument.createRange(); var S; switch (P) { case "beforebegin": N.setStartBefore(R); S = N.createContextualFragment(Q); R.parentNode.insertBefore(S, R); return R.previousSibling; case "afterbegin": if (R.firstChild) { N.setStartBefore(R.firstChild); S = N.createContextualFragment(Q); R.insertBefore(S, R.firstChild); return R.firstChild; } else { R.innerHTML = Q; return R.firstChild; } case "beforeend": if (R.lastChild) { N.setStartAfter(R.lastChild); S = N.createContextualFragment(Q); R.appendChild(S); return R.lastChild; } else { R.innerHTML = Q; return R.lastChild; } case "afterend": N.setStartAfter(R); S = N.createContextualFragment(Q); R.parentNode.insertBefore(S, R.nextSibling); return R.nextSibling; } throw "Illegal insertion point -> \"" + P + "\""; -- Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.