Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #10133
| From | "J.R." <groups_jr-1@yahoo.com.br> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: innerHTML |
| Date | 2012-01-11 07:16 -0200 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <jejk1i$glo$1@speranza.aioe.org> (permalink) |
| References | <36r7f719terpj6d2guc8v2hicvnmsgilvc@4ax.com> <4ef45360$0$7623$9b4e6d93@newsspool1.arcor-online.net> <jd1til$qn3$1@dont-email.me> <je6d3s$v7v$2@speranza.aioe.org> <2reqg7ppct0ar29bas0503ucd0mcr79q07@4ax.com> |
On 11/01/2012 05:36, Hans-Georg Michna wrote: > On Fri, 06 Jan 2012 14:35:51 +0530, Bwig Zomberi wrote: > >> Gregor Kofler wrote: > >>> innerHTML is widely supported, but no standard yet. Particularly with >>> (older) IE browsers innerHTML has its fair share of issues. > >> textContent > > That is not supported by Internet Explorer, at least not up to > version 8, maybe not even 9. > textContent property (DOM Level 3) is now supported by IE9. See <http://msdn.microsoft.com/en-us/library/ff974773(v=vs.85).aspx> IE prior to version 9 supports innerText. > So if you want to support these browsers, like every > conscientious web programmer would do, you cannot use > textContent or you have to fall back on a contraption around > innerHTML for IE. The contraption depends on circumstances. See > http://winhlp.com/node/610#toade for some hints. Difference between innerText and textContent: see <https://developer.mozilla.org/En/DOM/Node.textContent> * innerText -> implemented in IE prior to version 9. * textContent -> DOM Level 3 - IE9, FF, Safari, etc. * Google Chrome seems to implement both innerText and textContent. -- Joao Rodrigues (J.R.)
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
innerHTML Gene Wirchenko <genew@ocis.net> - 2011-12-22 18:55 -0800
Re: innerHTML Andrew Poulos <ap_prog@hotmail.com> - 2011-12-23 15:18 +1100
Re: innerHTML Christian Kirsch <ck@bru6.de> - 2011-12-23 11:09 +0100
Re: innerHTML Gregor Kofler <usenet@gregorkofler.com> - 2011-12-23 13:52 +0100
Re: innerHTML Bwig Zomberi <zomberiMAPSONNOSPAM@gmail.invalid> - 2012-01-06 14:35 +0530
Re: innerHTML Hans-Georg Michna <hans-georgNoEmailPlease@michna.com> - 2012-01-11 08:36 +0100
Re: innerHTML "J.R." <groups_jr-1@yahoo.com.br> - 2012-01-11 07:16 -0200
Re: innerHTML Hans-Georg Michna <hans-georgNoEmailPlease@michna.com> - 2012-01-14 22:16 +0100
Re: innerHTML Dr J R Stockton <reply1151@merlyn.demon.co.uk> - 2011-12-24 20:57 +0000
Re: innerHTML Arno Welzel <usenet@arnowelzel.de> - 2012-01-04 08:54 +0100
csiph-web