It could not have been a bug in "*the* JS-engine" because
1. There is no such thing. Netscape/Mozilla JavaScript (e.g. in
Mozilla-based browsers, NES compatibles, B2G, and Firefox OS) is but one
of several ECMAScript implementations. Other major implementations
include JScript (e.g. in MSHTML/IE, with Windows Script Host, and on
IIS), V8 (e.g. in Chromium/Google Chrome, on Android, and as base of
node.js), Apple JavaScriptCore (e.g. in Safari, and on the iPhone/iPad),
Opera ECMAScript (in Opera and Opera Mobile), and KDE JavaScript (e.g.
in Konqueror):
<
http://PointedEars.de/es-matrix> (to be updated)
Despite the historic name of the newsgroup, all of those implementations
are on-topic here and in similar newsgroups in other Usenet hierarchies.
2. The feature you are using here is not part of any ECMAScript
implementation to begin with, but of a language-independent DOM API.
You are merely using an implementation of that with ECMAScript
implementations:
<
https://developer.mozilla.org/en/docs/DOM>
Scripting a DOM using an ECMAScript implementation is on-topic here as
well.
That said, next time you should be slow(er) to declare something a bug
without being sure, much less use the word "bug" that way in the message'
Subject:
<
http://www.catb.org/~esr/faqs/smart-questions.html>,
in particular
<
http://www.catb.org/~esr/faqs/smart-questions.html#idp29846432>.
HTH
PointedEars
--
Danny Goodman's books are out of date and teach practices that are
positively harmful for cross-browser scripting.
-- Richard Cornford, cljs, <cife6q$253$1$
8300...@news.demon.co.uk> (2004)