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

JSLint does not understand @import

Expand Messages
  • pauanyu
    @charset UTF-8 ; @import foo ; @import url( foo ); @import foo ; @import url( foo ); JSLint chokes on the above.
    Message 1 of 3 , Aug 21, 2009
    • 0 Attachment
      @charset "UTF-8";

      @import 'foo';
      @import url('foo');

      @import "foo";
      @import url("foo");


      JSLint chokes on the above.
    • douglascrockford
      ... JSLint now accepts the url form of @import. It will continue to reject the string form of @import.
      Message 2 of 3 , Aug 22, 2009
      • 0 Attachment
        --- In jslint_com@yahoogroups.com, "pauanyu" <pcxunlimited@...> wrote:

        > @charset "UTF-8";
        >
        > @import 'foo';
        > @import url('foo');
        >
        > @import "foo";
        > @import url("foo");

        JSLint now accepts the url form of @import.
        It will continue to reject the string form of @import.
      • pauanyu
        ... This is fixed now. Using @import foo doesn t work, but @import url( foo ) does.
        Message 3 of 3 , Aug 22, 2009
        • 0 Attachment
          --- In jslint_com@yahoogroups.com, "pauanyu" <pcxunlimited@...> wrote:
          >
          > @charset "UTF-8";
          >
          > @import 'foo';
          > @import url('foo');
          >
          > @import "foo";
          > @import url("foo");
          >
          >
          > JSLint chokes on the above.
          >

          This is fixed now. Using @import "foo" doesn't work, but @import url("foo") does.
        Your message has been successfully submitted and would be delivered to recipients shortly.