javascript 1.5

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Aamir Ghanchi

    #1

    javascript 1.5

    Hello,

    why is it that the documentation for javascript 1.5 does not talk
    about the HTML elenments and their attributes and properties.


    For example the "checked" property of radio buttons.

    The documentation for older versions mentioned it though.


    Are they not being supported by Netscape browsers any more. I program
    for IE only therefore am not aware of it.
  • Lasse Reichstein Nielsen

    #2
    Re: javascript 1.5

    aamirghanchi@ya hoo.com (Aamir Ghanchi) writes:
    [color=blue]
    > why is it that the documentation for javascript 1.5 does not talk
    > about the HTML elenments and their attributes and properties.[/color]

    Because that is now defined by the W3C DOM 2 HTML specification.
    <URL:http://www.w3.org/TR/DOM-Level-2-HTML/>
    in particular the ECMAScript binding:
    <URL:http://www.w3.org/TR/DOM-Level-2-HTML/ecma-script-binding.html>
    [color=blue]
    > For example the "checked" property of radio buttons.[/color]

    Search for "HTMLInputEleme nt" in the latter document above.
    [color=blue]
    > The documentation for older versions mentioned it though.
    > http://wp.netscape.com/eng/mozilla/3..._a-c.htm#63602[/color]

    Yes, back then then Netscape also defined the DOM for their
    browsers. W3C attempts to standardize that now (and succeedes to a
    large degree in moderne browsers .... which excludes IE).
    [color=blue]
    > Are they not being supported by Netscape browsers any more. I program
    > for IE only therefore am not aware of it.[/color]

    Modern Netscape browsers are based on the Gecko engine from the
    Mozilla project, i.e., the same as the Mozilla browser (and Mozilla
    FireFox, Camino, KMeleon, etc). It is highly standards compliant.

    That means that many of the proprietary features of IE will not work.
    Luckily, IE, by version 6, is supporting some of the Core DOM, so you
    can make code that works in both IE and modern browsers.

    /L
    --
    Lasse Reichstein Nielsen - lrn@hotpop.com
    DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleD OM.html>
    'Faith without judgement merely degrades the spirit divine.'

    Comment

    • Thomas 'PointedEars' Lahn

      #3
      Re: javascript 1.5

      Lasse Reichstein Nielsen wrote:[color=blue]
      > aamirghanchi@ya hoo.com (Aamir Ghanchi) writes:[color=green]
      >> why is it that the documentation for javascript 1.5 does not talk
      >> about the HTML elenments and their attributes and properties.[/color]
      >
      > Because that is now defined by the W3C DOM 2 HTML specification.[/color]

      Yes and no. The reason is that what was part of the JavaScript core
      language until version 1.3 but referred to client-side host objects
      of Netscape Navigator (formally but not explicitely specified in
      ECMAScript Edition 3), also called DOM Level 0 (as supported from
      NN/IE 3 on), is now (v1.4+) part of the Gecko DOM which implements
      parts of the W3C DOM (Level 1+) but also contains proprietary extensions.

      <http://devedge.netscap e.com/library/manuals/>
      <http://www.mozilla.org/docs/dom/>
      <http://www.mozilla.org/docs/dom/domref/>

      Other DOMs, like the IE (5+) DOM or Opera's DOM, implement parts of
      the W3C DOM, too.


      PointedEars

      Comment

      Working...