Loading ...
Sorry, an error occurred while loading the content.

Re: Does JSLint parse DOM functions?

Expand Messages
  • pauanyu
    1) The window object is usually implemented as the DOM defaultView: https://developer.mozilla.org/en/DOM:document.defaultView In addition, although the
    Message 1 of 5 , Jun 13, 2010
    View Source
    • 0 Attachment
      1) The "window" object is usually implemented as the DOM defaultView:

      https://developer.mozilla.org/en/DOM:document.defaultView

      In addition, although the "window" object itself may not be codified in the spec, it implements the EventTarget interface, and the addEventListener method IS part of the DOM spec.

      2) document.documentElement is a part of the DOM Core Level 2, as Aseem Kishore pointed out.

      --- In jslint_com@yahoogroups.com, "Cheney, Edward A SSG RES USAR USARC" <austin.cheney@...> wrote:
      >
      > paulur10,
      >
      > 1) If you attempting to access a window object you are not using the DOM. The DOM is based upon the document object as the tree root.
      >
      > 2) There exists no such thing, at least in accordance with standards, as document.documentElement. Instead try
      > document.getElementById("theIDvaluehere").innerHTML = "your string to output here";
      >
      > Austin
      > http://prettydiff.com/
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.