Is it onerror or onError?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • test9991014@yahoo.com

    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.


  • Thomas 'PointedEars' Lahn

    #2
    Re: Is it onerror or onError?

    test9991014@yah oo.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

    Comment

    • sasuke

      #3
      Re: Is it onerror or onError?

      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?

      Comment

      • Thomas 'PointedEars' Lahn

        #4
        Re: Is it onerror or onError?

        VK wrote:
        HTML is case-insensitive: [...]
        Not per se:




        PointedEars
        --
        realism: HTML 4.01 Strict
        evangelism: XHTML 1.0 Strict
        madness: XHTML 1.1 as application/xhtml+xml
        -- Bjoern Hoehrmann

        Comment

        • VK

          #5
          Re: Is it onerror or onError?

          On Mar 23, 11:24 pm, Thomas 'PointedEars' Lahn <PointedE...@we b.de>
          wrote:
          VK wrote:
          HTML is case-insensitive: [...]
          >
          Not per se:
          >
          http://www.w3.org/TR/html4/types.html#h-6.1

          "Element names are always case-insensitive."


          "Attribute names are always case-insensitive."

          This is all what relevant to the topic but again (http://
          groups.google.c om/group/comp.lang.javas cript/msg/2c93334d643abbc 2)
          thank you for trying - though not always successfully - to be useful.


          Comment

          • VK

            #6
            Re: Is it onerror or onError?

            On Mar 24, 1:34 am, Thomas 'PointedEars' Lahn <PointedE...@we b.de>
            wrote:
            For brevity let us ignore the rest of your displaying your utter
            incompetence again.
            Xvff zl fhpxrq fpevcgrq nff, fhxn' ;-)

            Comment

            Working...