Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #31788
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: Why newly inserted area is not editable? |
| Date | 2016-12-09 00:53 +0100 |
| Organization | PointedEars Software (PES) |
| Message-ID | <3239245.MHq7AAxBmi@PointedEars.de> (permalink) |
| References | <043953cd-d54a-4796-8b30-e1eb1a75e0aa@googlegroups.com> <8b2xlyytchs6$.zht2nvcktkr.dlg@40tude.net> |
JJ wrote: > 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. <https://www.w3.org/TR/dom/#nondocumenttypechildnode> <https://www.w3.org/TR/dom/#parentnode> -- 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 | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Why newly inserted area is not editable? justaguy <lichunshen84@gmail.com> - 2016-12-08 13:39 -0800
Re: Why newly inserted area is not editable? JJ <jj4public@vfemail.net> - 2016-12-09 06:25 +0700
Re: Why newly inserted area is not editable? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-12-09 00:53 +0100
Re: Why newly inserted area is not editable? justaguy <lichunshen84@gmail.com> - 2016-12-08 17:29 -0800
Re: Why newly inserted area is not editable? justaguy <lichunshen84@gmail.com> - 2016-12-08 17:29 -0800
csiph-web