469,326 Members | 1,241 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,326 developers. It's quick & easy.

Is it onerror or onError?

Hi,

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. Or is it actually onError?

Thanks.
Mar 21 '08 #1
5 1449
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
Mar 21 '08 #2
Thomas 'PointedEars' Lahn wrote:
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.
So I guess we are only left with the exception handling (try..catch
blocks) when performing error handling since 'onerror` is no longer a
javascript standard.

Is Javascript language version different from the ECMA script
specification versions? Is there any way of knowing the implementation
version a user agent (browser) uses?
Mar 22 '08 #3
VK wrote:
HTML is case-insensitive: [...]
Not per se:

http://www.w3.org/TR/html4/types.html#h-6.1
PointedEars
--
realism: HTML 4.01 Strict
evangelism: XHTML 1.0 Strict
madness: XHTML 1.1 as application/xhtml+xml
-- Bjoern Hoehrmann
Mar 23 '08 #4
VK
On Mar 23, 11:24 pm, Thomas 'PointedEars' Lahn <PointedE...@web.de>
wrote:
VK wrote:
HTML is case-insensitive: [...]

Not per se:

http://www.w3.org/TR/html4/types.html#h-6.1
http://www.w3.org/TR/html4/intro/sgmltut.html#h-3.2.1
"Element names are always case-insensitive."

http://www.w3.org/TR/html4/intro/sgmltut.html#h-3.2.2
"Attribute names are always case-insensitive."

This is all what relevant to the topic but again (http://
groups.google.com/group/comp.lang.javascript/msg/2c93334d643abbc2)
thank you for trying - though not always successfully - to be useful.
Mar 23 '08 #5
VK
On Mar 24, 1:34 am, Thomas 'PointedEars' Lahn <PointedE...@web.de>
wrote:
For brevity let us ignore the rest of your displaying your utter
incompetence again.
Xvff zl fhpxrq fpevcgrq nff, fhxn' ;-)

Mar 27 '08 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Robert Oschler | last post: by
4 posts views Thread by Jürgen Heyn | last post: by
2 posts views Thread by crazydave | last post: by
5 posts views Thread by Pete Verdon | last post: by
4 posts views Thread by josh | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by harlem98 | last post: by
reply views Thread by listenups61195 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.