Path: csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder2-2.proxad.net!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail Content-Type: text/plain; charset="UTF-8" Message-ID: <1676242.YrdhhZhtd8@PointedEars.de> From: Thomas 'PointedEars' Lahn Reply-To: Thomas 'PointedEars' Lahn Organization: PointedEars Software (PES) Date: Thu, 12 Sep 2013 18:24:32 +0200 User-Agent: KNode/4.10.5 Content-Transfer-Encoding: 8Bit X-Face: %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&. MIME-Version: 1.0 Lines: 44 NNTP-Posting-Date: 12 Sep 2013 18:24:36 CEST NNTP-Posting-Host: 5fa29237.newsspool4.arcor-online.net X-Trace: DXC=N`QlWT[aji9n`gW2MTm]<34IUK A bit old this thread “A bit old” indeed – it is from 2007, so hardly relevant in 2013. A lot has changed in the meantime. Only Google Groups users would see it because Google Groups is (based on) a Usenet archive, and it is FUBAR on top of that. Please either do not use it or tell Google to fix it. TIA. > […] > Maybe this has been solved already by someone before my post here. Maybe, during those 6 years. > However, here is my solution: > > function loadHTMLFragment(elementId, fragment) > { > if (document && > document.getElementById && This (type-converting a host object's method) will break in not that recent IE/MSHTMLs. > document.getElementById(elementId) && > document.createElement && Same here. > document.appendChild && > document.getElementsByTagName) { And here. Consider jsx.object.isHostMethod() and the like instead: Your code does not appear to solve a real problem, let alone the unreal problem the OP had 6 years(!) ago. -- PointedEars Twitter: @PointedEars2 Please do not Cc: me. / Bitte keine Kopien per E-Mail.