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

333Re: [jslint] DOM classes undefined

Expand Messages
  • mnewton32@yahoo.ca
    Dec 17, 2008
    • 0 Attachment
      Yes, JS is case sensitive; document is referring to a specific object that exists in all browsers, while Document refers to the class that object should be an instance of. IE doesn't support those standard DOM classes that the original poster is looking for.

      Sent from my BlackBerry device on the Rogers Wireless Network

      -----Original Message-----
      From: kaichen67@...

      Date: Wed, 17 Dec 2008 21:10:04
      To: <jslint_com@yahoogroups.com>
      Subject: Re: [jslint] DOM classes undefined

      > With 'assume browser' turned on, JSLint rejects the following:

      > if (n instanceof Document) { // 'Document' is undefined
      > // ...
      > }

      > Shouldn't the DOM classes (Document, Element, ...) be defined when
      > assuming a browser, or is this intentional?

      Try this:


      Javascript is case sensitive!

      [Non-text portions of this message have been removed]
    • Show all 4 messages in this topic