Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Mattias Campe Newsgroups: comp.lang.javascript Subject: getElementsByClassName: BUG in JS-engine? Date: Sun, 18 Nov 2012 11:47:49 +0100 Organization: A noiseless patient Spider Lines: 18 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sun, 18 Nov 2012 10:48:40 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="7a7c0a9f198479aa7eaac9257543584d"; logging-data="5270"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+7y4zb5zvqVjtT+es3KD+T" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121028 Thunderbird/16.0.2 Cancel-Lock: sha1:7QPfM1PVeZUVgtRk00tE9FMJD6s= Xref: csiph.com comp.lang.javascript:17289 Dear comp.lang.javascript I have strange behavior when using getElementsByClassName and I don't understand what I'm doing wrong. There are some paragraphs, where I want to change layout by selecting the className, to "link" another className to it. But getElementsByClassName only gets some of those classnames, but not all. It seems such a simple exercise to make it hard to have errors, but still I succeed in doing so :-/. Would somebody happen to know what the problem is? You can find my code at http://php.olvgroeninge.be/~sac.mcampe/werkmap/getElementsByClassName.html Tested with browser Firefox 16.0.2 op Ubuntu 12.10 Kind regards Mattias