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


Groups > comp.lang.javascript > #39029

Re: check is referenced element still exists

From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Newsgroups comp.lang.javascript
Subject Re: check is referenced element still exists
Date 2020-10-22 14:14 +0200
Organization PointedEars Software (PES)
Message-ID <2119550.iZASKD2KPV@PointedEars.de> (permalink)
References <bqudnUDYr6wRRA3CnZ2dnUU7-LXNnZ2d@westnet.com.au> <1fwp7byxju1hn$.ugackqir7itz$.dlg@40tude.net>

Show all headers | View raw


JJ wrote:

> Check the element's `parentNode` property. It'll be `null` if it's not
> placed into the document. Be sure to check the property of the removable
> element, and not any of its child element.

… or, in general, child *nodes*, which includes text nodes.

-- 
PointedEars
FAQ: <http://PointedEars.de/faq> | <http://PointedEars.de/es-matrix>
<https://github.com/PointedEars> | <http://PointedEars.de/wsvn/>
Twitter: @PointedEars2 | 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

check is referenced element still exists Andrew Poulos <ap_prog@hotmail.com> - 2020-10-22 11:59 +1100
  Re: check is referenced element still exists Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2020-10-22 03:59 +0200
  Re: check is referenced element still exists JJ <jj4public@gmail.com> - 2020-10-22 14:22 +0700
    Re: check is referenced element still exists Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2020-10-22 14:14 +0200
    Re: check is referenced element still exists "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2020-10-22 11:35 -0700
      Re: check is referenced element still exists Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2020-10-23 21:35 +0200

csiph-web