te*********@yahoo.com wrote:
I gather that Javascript standard function names are case sensitive and
they follow the old Smalltalk manner of applying case e.g. thisName,
however I am curious, I see "onerror" mentioned on some web pages which
seems to contradict the standard.
The ECMAScript Language Specification, which is the standard that JavaScript
and other implementations are based on, has nothing to say about the
expected case of user-defined identifiers, although its use of identifiers
starting with capital letter, among other PLs, for constructors, has become
a rule of thumb for Pretty Printing.
I suspect the camelCasing in JavaScript (since 1996 CE) and consequently
ECMAScript (since 1997 CE) was derived from Perl (since 1987 CE) and its
successors instead, although Smalltalk (since 1972 CE) maybe was the
language that introduced it.
Or is it actually onError?
`onerror' is a proprietary property of Window and Image host objects.
Neither is part of the JavaScript language anymore since version 1.4.
PointedEars
--
realism: HTML 4.01 Strict
evangelism: XHTML 1.0 Strict
madness: XHTML 1.1 as application/xhtml+xml
-- Bjoern Hoehrmann