Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #31789
| Newsgroups | comp.lang.javascript |
|---|---|
| Date | 2016-12-08 17:29 -0800 |
| References | <043953cd-d54a-4796-8b30-e1eb1a75e0aa@googlegroups.com> <8b2xlyytchs6$.zht2nvcktkr.dlg@40tude.net> <3239245.MHq7AAxBmi@PointedEars.de> |
| Message-ID | <910cfb36-aaa6-416d-930f-c755ea161543@googlegroups.com> (permalink) |
| Subject | Re: Why newly inserted area is not editable? |
| From | justaguy <lichunshen84@gmail.com> |
On Thursday, December 8, 2016 at 6:53:37 PM UTC-5, Thomas 'PointedEars' Lahn wrote: > 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> > Thanks but problem resolved with making a specific ID content editable.
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