Path: csiph.com!news.mixmin.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: Thomas 'PointedEars' Lahn Newsgroups: comp.lang.javascript Subject: Re: Is there such a thing as AppendSibling? Date: Wed, 27 Apr 2016 21:29:07 +0200 Organization: PointedEars Software (PES) Lines: 34 Message-ID: <1883569.FeaefMiEB4@PointedEars.de> References: <2507561.Om0TlvYDvz@PointedEars.de> <165xttxngz2tw$.153gbq3rd98pc.dlg@40tude.net> Reply-To: Thomas 'PointedEars' Lahn Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Trace: solani.org 1461785348 27041 eJwFwQEBACAIA7BKgPxKHa70j+CGRad2EkwMxg2mU/14d8mVQ8xhVLyb8gzhrd7CVJ8w/xZZENs= (27 Apr 2016 19:29:08 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Wed, 27 Apr 2016 19:29:08 +0000 (UTC) User-Agent: KNode/4.14.2 X-User-ID: eJwFwQkBwDAIA0BNK5CmcvjiX8LuwvChryPgodALX8sbD5yP6V0SSdC8HjTbGqMugW7tGXqOHdvsY6X6AV2jFn4= Cancel-Lock: sha1:wBg0ckLi1RPdmzlZLL6yEn4xp/A= X-NNTP-Posting-Host: eJwFwYEBwCAIA7CXQGmZ5xSR/09Ygk3nzSAYGMyaQT3z6qM3IUXntrxWelTysMBvkUh3b/01IBFZ Xref: csiph.com comp.lang.javascript:30371 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: | SVN: Twitter: @PointedEars2 | ES Matrix: Please do not cc me. / Bitte keine Kopien per E-Mail.