Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!weretis.net!feeder4.news.weretis.net!news.teledata-fn.de!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail Content-Type: text/plain; charset="UTF-8" Message-ID: <3701606.ZRzbRc1aAO@PointedEars.de> From: Thomas 'PointedEars' Lahn Reply-To: Thomas 'PointedEars' Lahn Organization: PointedEars Software (PES) Date: Wed, 06 Mar 2013 00:08:25 +0100 User-Agent: KNode/4.8.5 Content-Transfer-Encoding: 8Bit X-Face: %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&. <2342178.BYbISWzQ9U@PointedEars.de> <1699591.rPLLIT5s0r@PointedEars.de> MIME-Version: 1.0 Lines: 21 NNTP-Posting-Date: 06 Mar 2013 00:08:27 CET NNTP-Posting-Host: e2ccf4fd.newsspool3.arcor-online.net X-Trace: DXC=ln_]ePdLi4m]l@YUW5NBknMcF=Q^Z^V3h4Fo<]lROoRa8kFYBYU3JEomaVFN475d5?c X-Complaints-To: usenet-abuse@arcor.de Xref: csiph.com comp.lang.javascript:18726 Thomas 'PointedEars' Lahn wrote: > Cezary Tomczyk wrote: >> if (!node.hasChildNodes() > > I have never used that method before. Unless you are sure about its > backwards-compatibility, you should replace the call with > > if (!node.childNodes.length > 0 > […] I meant if (node.childNodes.length < 1 or if (node.childNodes.length == 0 -- PointedEars