Path: csiph.com!usenet.pasdenom.info!gegeweb.org!newsfeed.kamp.net!newsfeed.kamp.net!newsfeed.freenet.ag!takemy.news.telefonica.de!telefonica.de!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail Content-Type: text/plain; charset="UTF-8" Message-ID: <19825448.DougqSLUUr@PointedEars.de> From: Thomas 'PointedEars' Lahn Reply-To: Thomas 'PointedEars' Lahn Organization: PointedEars Software (PES) Date: Thu, 18 Apr 2013 12:39:16 +0200 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+&. <1411375.u70iIU05oh@PointedEars.de> MIME-Version: 1.0 Lines: 45 NNTP-Posting-Date: 18 Apr 2013 12:39:20 CEST NNTP-Posting-Host: fab54bac.newsspool1.arcor-online.net X-Trace: DXC=Wf?d:7PRbG=lIh70@4Fo<]lROoR1nkgeX?EC@@059mb1gI=;^9DZm8W4\YJN 2013-04-18 12:06, Thomas 'PointedEars' Lahn wrote: >> However, using an ID (“id” attribute value of “img” elements) instead of >> a name (“name” attribute value of “img” elements) is not ^ >> backwards-compatible to DOM Level 0. > > […] focus on warning against good coding > practices on the grounds of something that might happen in early > releases of Internet Explorer 3 or Netscape Navigator 2. The phrase “as index” (to document.images) in the marked spot got lost on rewording, as the resource referred by the first URL further down (trimmed here by the author of the precursor) shows. document.getElementById() was not available before Internet Explorer 5.5 (2000-07), Netscape Navigator 6.0 (2000-11), Mozilla 0.6 (2000-12), and Phoenix/Firefox 0.1 (2002-09-23), to name a few. DOM Level 1, which introduced document.getElementById(), became a W3C Recommendation on 1998-10-01 already, though. [1] The term “DOM Level 0”, defined in hindsight in W3C DOM Level 2 HTML (that obsolotes DOM HTML Level 1), describes features that were *introduced* with IE 3 and NN 2, and by the time of NN 3 were the only *common* features of DOM implementations until the first two interoperable implementations of W3C DOM Level 1. [2] Research as to where and when document.images[…] first supported IDs is pending, but it was probably not before IE 5.5 and NN 6.0 because that is a W3C DOM feature (AISB). See also . As for “good coding practices”, it is _not_ a “good coding practice”, let alone best current practice, to use a method call to search a larger HTMLCollection when you can search a smaller one without a method call, more precisely, and in a less error-prone and more compatible way. -- PointedEars Twitter: @PointedEars2 Please do not Cc: me. / Bitte keine Kopien per E-Mail.