Path: csiph.com!2.eu.feeder.erje.net!feeder.erje.net!1.eu.feeder.erje.net!weretis.net!feeder4.news.weretis.net!feeder5.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: Thomas 'PointedEars' Lahn Newsgroups: comp.lang.javascript Subject: Re: Why newly inserted area is not editable? Date: Fri, 09 Dec 2016 00:53:31 +0100 Organization: PointedEars Software (PES) Lines: 21 Message-ID: <3239245.MHq7AAxBmi@PointedEars.de> References: <043953cd-d54a-4796-8b30-e1eb1a75e0aa@googlegroups.com> <8b2xlyytchs6$.zht2nvcktkr.dlg@40tude.net> Reply-To: Thomas 'PointedEars' Lahn Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8Bit X-Trace: solani.org 1481241212 26416 eJwFwYEBACAEBMCVCC/j1Mf+I3QXBgXTEfCYmMy5qk+ymLd8sGwJPeG1bUR7s4/rIdti9H0PahEE (8 Dec 2016 23:53:32 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Thu, 8 Dec 2016 23:53:32 +0000 (UTC) User-Agent: KNode/4.14.2 Cancel-Lock: sha1:btzZnbCteH0dNlhLEtXkpyaRXJk= X-Face: %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&. previousSibling may not be an element node, depending on where you've > inserted the dynamically created TR element. You don't ignore that. The “previousElementSibling” property introduced with DOM4 can provide an easier workaround than an XPath expression (supported by an implementation of DOM Level 2 XPath) or sibling node iteration. Likewise, before one writes an XPath expression, or attempts to iterate over child nodes, or resorts to a library, one should check if the “firstElementChild”, “lastElementChild”, or “children” properties are implemented that are specified there. -- PointedEars FAQ: | | Twitter: @PointedEars2 | Please do not cc me./Bitte keine Kopien per E-Mail.