Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #30371

Re: Is there such a thing as AppendSibling?

From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Newsgroups comp.lang.javascript
Subject Re: Is there such a thing as AppendSibling?
Date 2016-04-27 21:29 +0200
Organization PointedEars Software (PES)
Message-ID <1883569.FeaefMiEB4@PointedEars.de> (permalink)
References (1 earlier) <nfn3hd$htf$1@dont-email.me> <d9u5u561foam.1nkzd11bm9nvy.dlg@40tude.net> <2507561.Om0TlvYDvz@PointedEars.de> <165xttxngz2tw$.153gbq3rd98pc.dlg@40tude.net> <nfq0no$fnt$1@news.albasani.net>

Show all headers | View raw


Stefan Weiss wrote:

> JJ wrote:
>> On Tue, 26 Apr 2016 17:49:49 +0200, Thomas 'PointedEars' Lahn wrote:
>>> insertAdjacentHTML() is proprietary, inefficient, and error-prone; and
>>> it is obsolete since IE/MSHTML 5.
>> 
>> True, but Chromium and Firefox support it regardless. You should tell
>> them that.
>> 
>> Efficiency and flawlessness would depend on the implementation, not the
>> function specifications.
>> 
>> And IE still support it until its last version. Surely you meant Edge
>> instead of IE?
> 
> Edge and IE both support it (as do all of the other major browsers). I
> can't find any indication that this method has ever been marked as
> obsolete.

It is obsolete since IE/MSHTML 5 because IE/MSHTML 5 supports the W3C DOM.  
So do other browsers.

> It doesn't look particularly inefficient or error-prone to me.

Then you should have your eyes checked.  It is eval() and innerHTML in 
disguise: the second argument is a *string* of *markup* that needs to be 
*parsed* first.  Not so with appendChild().

-- 
PointedEars
FAQ: <http://PointedEars.de/faq> | SVN: <http://PointedEars.de/wsvn/>
Twitter: @PointedEars2 | ES Matrix: <http://PointedEars.de/es-matrix>
Please do not cc me. / Bitte keine Kopien per E-Mail.

Back to comp.lang.javascript | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Is there such a thing as AppendSibling? bit-naughty@hotmail.com - 2016-04-25 23:09 -0700
  Re: Is there such a thing as AppendSibling? Jake Jarvis <pig_in_shoes@yahoo.com> - 2016-04-26 09:01 +0200
    Re: Is there such a thing as AppendSibling? JJ <jj4public@vfemail.net> - 2016-04-26 19:05 +0700
      Re: Is there such a thing as AppendSibling? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-04-26 17:49 +0200
        Re: Is there such a thing as AppendSibling? JJ <jj4public@vfemail.net> - 2016-04-27 12:14 +0700
          Re: Is there such a thing as AppendSibling? Stefan Weiss <krewecherl@gmail.com> - 2016-04-27 11:28 +0200
            Re: Is there such a thing as AppendSibling? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-04-27 21:29 +0200
        Re: Is there such a thing as AppendSibling? Cezary Tomczyk <cezary.tomczyk@gmail.com> - 2016-04-27 13:07 +0100
          Re: Is there such a thing as AppendSibling? "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-04-27 06:41 -0700
            Re: Is there such a thing as AppendSibling? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-04-27 15:52 +0200
              Re: Is there such a thing as AppendSibling? "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-04-27 10:57 -0700
            Re: Is there such a thing as AppendSibling? "Christoph M. Becker" <cmbecker69@arcor.de> - 2016-04-27 16:00 +0200
              Re: Is there such a thing as AppendSibling? "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-04-27 10:48 -0700
              Re: Is there such a thing as AppendSibling? Cezary Tomczyk <cezary.tomczyk@gmail.com> - 2016-04-27 20:19 +0100
                Re: Is there such a thing as AppendSibling? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-04-27 21:42 +0200
          Re: Is there such a thing as AppendSibling? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-04-27 21:33 +0200
            Re: Is there such a thing as AppendSibling? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-04-27 21:44 +0200
              Re: Is there such a thing as AppendSibling? Cezary Tomczyk <cezary.tomczyk@gmail.com> - 2016-04-27 22:30 +0100
    Re: Is there such a thing as AppendSibling? bit-naughty@hotmail.com - 2016-04-30 05:48 -0700

csiph-web