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

2773RE: [jslint] Ending CSS block with semicolon

Expand Messages
  • Rob Richardson
    Feb 1, 2012
      It is less effective to lint minified or processed code as anything you discover usually can't be repaired in its current format. Also note that JSLint's CSS support is pretty rudimentary. Csslint.net is a similar tool for CSS.


      -----Original Message-----
      From: jslint_com@yahoogroups.com [mailto:jslint_com@yahoogroups.com] On Behalf Of Doc Emmett Splendid
      Sent: Wednesday, February 01, 2012 2:46 PM
      To: jslint_com@yahoogroups.com
      Subject: Re: [jslint] Ending CSS block with semicolon

      This is a difference between maintainable CSS (which should follow a very strict format) and ~minified~ CSS. Just as JSLint won't pass minified JS (which would also be written with a missing semicolon in the same essential location), it won't, and should not, pass minified CSS.

      -- DES

      From: cse_html_validator <alhome@... <mailto:alhome%40wiersch.com> >
      To: jslint_com@yahoogroups.com <mailto:jslint_com%40yahoogroups.com>
      Sent: Wednesday, 1 February 2012, 11:02
      Subject: [jslint] Ending CSS block with semicolon

      JSLint wants CSS blocks to end in semicolons, like this:

      <style type="text/css">

      It's perfectly OK to not have a semicolon in "{color:navy}".

      I don't see an option for this? Is there an option to stop this check?

      And if not, can such an option be added?

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