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

Option Constructor

Expand Messages
  • Chris
    Howdy, When Assume a Browser is checked, why does the following code cause a problem? var o = new Option(); Is there some browser that does not support the
    Message 1 of 2 , Mar 31, 2008
    • 0 Attachment
      Howdy,

      When "Assume a Browser" is checked, why does the following code cause
      a problem?

      var o = new Option();

      Is there some browser that does not support the Option constructor?

      - Chris
    • Douglas Crockford
      ... That s a blast from the past. JSLint now accepts it.
      Message 2 of 2 , Mar 31, 2008
      • 0 Attachment
        --- In jslint_com@yahoogroups.com, "Chris" <Nielsen.Chris@...> wrote:
        >
        > When "Assume a Browser" is checked, why does the following code cause
        > a problem?
        >
        > var o = new Option();
        >
        > Is there some browser that does not support the Option constructor?

        That's a blast from the past.

        JSLint now accepts it.
      Your message has been successfully submitted and would be delivered to recipients shortly.