Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #9906
| From | Arno Welzel <usenet@arnowelzel.de> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: innerHTML |
| Date | 2012-01-04 08:54 +0100 |
| Organization | A noiseless patient Spider |
| Message-ID | <4F0405B5.1010706@arnowelzel.de> (permalink) |
| References | <36r7f719terpj6d2guc8v2hicvnmsgilvc@4ax.com> |
Gene Wirchenko, 2011-12-23 03:55: > Dear JavaScripters: > > The FAQ states: > 9.4 How do I modify the content of the current page? > Using the non-standard but widely implemented innerHTML property... > > Is it still the case that it is non-standard? Is there an > alternative that is standard? With HTML5 innerHTML will become a standard. See also: <http://www.w3.org/TR/2008/WD-html5-20080610/dom.html#innerhtml0> <http://www.w3.org/TR/2008/WD-html5-20080610/dom.html#innerhtml1> Anyway - the problem remains, that you may end up with an invalid document when you insert invalid markup using innerHTML and the browser has to parse the given markup with every change of the innerHTML property. For more complex stuff you should use the DOM methods. This will be faster and you can not create invalid documents accidentally. -- Arno Welzel http://arnowelzel.de http://de-rec-fahrrad.de
Back to comp.lang.javascript | Previous | Next — Previous 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