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


Groups > comp.lang.javascript > #30362

Re: Is there such a thing as AppendSibling?

Newsgroups comp.lang.javascript
Date 2016-04-27 06:41 -0700
References <f34d1e4b-3958-4635-94bc-3f06c89486bc@googlegroups.com> <nfn3hd$htf$1@dont-email.me> <d9u5u561foam.1nkzd11bm9nvy.dlg@40tude.net> <2507561.Om0TlvYDvz@PointedEars.de> <c6e3e$5720ab80$11450e5d$367@nntpswitch.blueworldhosting.com>
Message-ID <0d63f4bc-9bd4-4e21-994d-779d667cdb91@googlegroups.com> (permalink)
Subject Re: Is there such a thing as AppendSibling?
From "Michael Haufe (TNO)" <tno@thenewobjective.com>

Show all headers | View raw


On Wednesday, April 27, 2016 at 7:07:34 AM UTC-5, Cezary Tomczyk wrote:
> On 26/04/2016 16:49, Thomas 'PointedEars' Lahn wrote:
> > JJ wrote:
> >
> >> On Tue, 26 Apr 2016 09:01:13 +0200, Jake Jarvis wrote:
> >>> Am 26.04.2016 um 08:09 schrieb bit-naughty [...]:
> >>>> I know about AppendChild, but if I say, have a <div> and I want another
> >>>> <div> *next* to it to appear when a particular button is clicked - i.e.
> >>>> _it's at the same level in the DOM tree_ !!! , then what do I do?
> >>>> Thanks.
> >>> Go up one level to the parent element and use the insertBefore(newChild,
> >>> refChild) method.
> >>
> >> Or insertAdjacentHTML(). Whichever is applicable.
> >
> > insertAdjacentHTML() is proprietary, inefficient, and error-prone; and it is
> > obsolete since IE/MSHTML 5.
> 
> Based on:
> 
> * 
> https://w3c.github.io/DOM-Parsing/#widl-Element-insertAdjacentHTML-void-DOMString-position-DOMString-text
> * https://msdn.microsoft.com/en-us/library/ms536452%28v=vs.85%29.aspx
> * 
> https://developer.mozilla.org/en-US/docs/Web/API/Element/insertAdjacentHTML
> 
> I don't think so it's obsolete.

Don't reference a Draft if you are making an argument about what is standard.

<https://www.w3.org/TR/DOM-Parsing/#widl-Element-insertAdjacentHTML-void-DOMString-position-DOMString-text>

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