Path: csiph.com!news.swapon.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Ben Bacarisse Newsgroups: comp.lang.javascript Subject: Re: Using getElementsByName on a DIV ? Date: Mon, 25 Apr 2016 20:10:35 +0100 Organization: A noiseless patient Spider Lines: 25 Message-ID: <8760v5a4ic.fsf@bsb.me.uk> References: <571e5590$0$5835$e4fe514c@news.xs4all.nl> <571e6847$0$5912$e4fe514c@news.xs4all.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: mx02.eternal-september.org; posting-host="017616aa25f81ec581c44d76d61ba2f3"; logging-data="8840"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19hv0BoLVwB2vHC/oSLFbe3EMrKi/iVdAo=" Cancel-Lock: sha1:djUUWxbY2joNj56X6V74va6ds14= sha1:Se1Sl5Ra+aMURMRxlCyIB/KZPwM= X-BSB-Auth: 1.86f9e3f1851e7d406c4f.20160425201035BST.8760v5a4ic.fsf@bsb.me.uk Xref: csiph.com comp.lang.javascript:30316 "R.Wieser" writes: > Stefan, > >> div.getElementsByTagName( "img" ) // untested > > Well, I used the result of "parentNode" (instead of "div"), and that > certainly didn't work for me. > >> »getElementsByTagName« belongs to the interfaces >> »Document« and »Element«. See www.w3.org/TR/dom/. > > That document is less than six months old. I would like to use something > that works on a bit more than just the very latest of browsers if you don't > mind. getElementsByTagName is one of the oldest methods. It's specified in the first version of the DOM (about 1998). If it did not work, it's not for being the new boy in town. Can you say more than just that it didn't work for you? -- Ben.