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

Re: JSLint error on css background/url

Expand Messages
  • Douglas Crockford
    ... JSLint does not like the security hazards that come from use of .. in urls.
    Message 1 of 2 , Jul 21, 2011
    • 0 Attachment
      --- In jslint_com@yahoogroups.com, Jérôme DESPATIS <jerome@...> wrote:
      > I'm using JSLint to validate the following CSS:
      >
      > --------------------------
      > @charset "UTF-8";
      >
      > #djDojoPreloader
      > {
      > background: #fff url('../images/loading.gif') no-repeat center center;
      > }
      > ---------------------------
      >
      > But I get the error:
      > /Error:/
      >
      > Problem at line 5 character 25: Bad url ''../images/loading.gif''.
      >
      > background: #fff url('../images/loading.gif') no-repeat center center;
      >
      >
      > Any idea on this error ? (I've tried url with single, double quotes and
      > no quotes, always the same error)


      JSLint does not like the security hazards that come from use of .. in urls.
    Your message has been successfully submitted and would be delivered to recipients shortly.