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

jslint is wrong on charset for css

Expand Messages
  • Jérôme DESPATIS
    Hello, I m testing JSLint on some css, it says the css must begin with @charset UTF-8 ; So I add it, no more error with JSLint But when I validate this css to
    Message 1 of 2 , Jul 13, 2011
      Hello,

      I'm testing JSLint on some css, it says the css must begin with @charset
      'UTF-8';

      So I add it, no more error with JSLint

      But when I validate this css to W3C Css validator,
      http://jigsaw.w3.org/css-validator/validator.html.en#validate_by_input

      I get an error, the exact syntax is:
      @charset "UTF-8";
      (doubles quotes and not single quotes)

      => I guess JSLint should give an error on @charset 'UTF-8'; (with single
      quotes)


      --
      Jérôme Despatis
      jerome@...
    • Douglas Crockford
      ... I am not going to bother with that unless you can find a browser that has a problem with it.
      Message 2 of 2 , Jul 13, 2011
        --- In jslint_com@yahoogroups.com, Jérôme DESPATIS <jerome@...> wrote:
        > I'm testing JSLint on some css, it says the css must begin with @charset
        > 'UTF-8';
        >
        > So I add it, no more error with JSLint
        >
        > But when I validate this css to W3C Css validator,
        > http://jigsaw.w3.org/css-validator/validator.html.en#validate_by_input
        >
        > I get an error, the exact syntax is:
        > @charset "UTF-8";
        > (doubles quotes and not single quotes)
        >
        > => I guess JSLint should give an error on @charset 'UTF-8'; (with single
        > quotes)

        I am not going to bother with that unless you can find a browser that has a problem with it.
      Your message has been successfully submitted and would be delivered to recipients shortly.