Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail Content-Type: text/plain; charset="UTF-8" Message-ID: <3424898.lctlB8SDK3@PointedEars.de> From: Thomas 'PointedEars' Lahn Reply-To: Thomas 'PointedEars' Lahn Organization: PointedEars Software (PES) Date: Wed, 12 Jun 2013 16:33:10 +0200 User-Agent: KNode/4.10.2 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+&. <51b86558$0$6630$9b4e6d93@newsspool2.arcor-online.net> MIME-Version: 1.0 Lines: 39 NNTP-Posting-Date: 12 Jun 2013 16:33:13 CEST NNTP-Posting-Host: bc95b0c6.newsspool3.arcor-online.net X-Trace: DXC=kAR3PUH6@oDE4ZB2flKORAMcF=Q^Z^V3H4Fo<]lROoRA8kFADZm8W4\YJNLb@mF9jNikdEBoKGPB=12AG==J8EjZ]aPL X-Complaints-To: usenet-abuse@arcor.de Xref: csiph.com comp.lang.javascript:20222 Martin Honnen wrote: > Mel Smith wrote: >> Using IE8 and the method document.getElementsByName("somename") >> works correctly for elements with a 'name' >> >> However, it fails to produce an array of objects for elements. >> >> Is there a workaround for this please ? > > Neither HTML 4 nor HTML5 define a "name" attribute on "td" elements I > think (while of course form controls like "input" elements have such an > attribute). You are correct (I happen to have the sections on screen for further improvement of the ES Matrix): > So what do you want to achieve? If you want to group some "td" elements > other than by putting them into "tr" elements in the same "tbody" then > use the "class" attribute. In that case getElementsByClassName should > help, although for IE 8 you will need to implement it or use > querySelectorAll. In HTML5 there is also the possibility of microdata – data-name="foo" – but it is probably overkill here. -- PointedEars Twitter: @PointedEars2 Please do not Cc: me. / Bitte keine Kopien per E-Mail.