Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder2.hal-mli.net!newsfeed.straub-nv.de!feeder.erje.net!eu.feeder.erje.net!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail Content-Type: text/plain; charset="UTF-8" Message-ID: <5418755.GafWFG2uKG@PointedEars.de> From: Thomas 'PointedEars' Lahn Reply-To: Thomas 'PointedEars' Lahn Organization: PointedEars Software (PES) Date: Sun, 03 Feb 2013 22:35:32 +0100 User-Agent: KNode/4.8.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+&. text replacement ?? Newsgroups: comp.lang.javascript References: MIME-Version: 1.0 Lines: 30 NNTP-Posting-Date: 03 Feb 2013 22:35:33 CET NNTP-Posting-Host: 1c9a467b.newsspool4.arcor-online.net X-Trace: DXC=mNRn]Z\bcKC78PK[oJ2ng@4IUK On 4/02/2013 12:38 AM, Jukka K. Korpela wrote: >> 2013-02-03 12:11, Andrew Poulos wrote: >>> Its unfortunate that PE didn't post the answer you wanted to see but I >>> notice that you haven't posted an answer. >> >> Which part of my text 'The practical choice is the innerHTML property: >> document.getElementById("ierrmsg").innerHTML = "new error msg" ;' did >> you fail to notice? It was even quoted in the Pointless Troll's message. > > My bad. I was reading your follow up post and didn't realise that the > the remnant quote in the clipped post was yours. But, as I said, it is incorrect to call the proprietary “innerHTML” property “the practical choice”; that is the result of short-sighted reasoning as the OP explicitly wanted to change the *text content* of the element. Compare the result of el.textContent = "foo & bar"; with that of el.innerHTML = "foo & bar"; -- PointedEars Twitter: @PointedEars2 Please do not Cc: me. / Bitte keine Kopien per E-Mail.