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

A couple JSLint bugs.

Expand Messages
  • pauanyu
    Run the following code in JSLint: div { /**/ } Note the (incorrect) errors that come up:
    Message 1 of 2 , Apr 30, 2009
    • 0 Attachment
      Run the following code in JSLint:

      <html>
      <head>
      <style type="text/css">
      div {
      /**/
      }
      </style>
      </head>
      </html>

      Note the (incorrect) errors that come up:

      Unexpected character '/' in type.
      Unescaped '*'.
      Excepted a style attribute, and instead saw '**'.
      Expected ':' and instead saw '}'.
      Cannot read property 'length' of undefined
    • Douglas Crockford
      ... They have been fixed. Thanks for the report.
      Message 2 of 2 , Apr 30, 2009
      • 0 Attachment
        --- In jslint_com@yahoogroups.com, "pauanyu" <pcxunlimited@...> wrote:
        >
        > Run the following code in JSLint:
        >
        > <html>
        > <head>
        > <style type="text/css">
        > div {
        > /**/
        > }
        > </style>
        > </head>
        > </html>
        >
        > Note the (incorrect) errors that come up:
        >
        > Unexpected character '/' in type.
        > Unescaped '*'.
        > Excepted a style attribute, and instead saw '**'.
        > Expected ':' and instead saw '}'.
        > Cannot read property 'length' of undefined

        They have been fixed. Thanks for the report.
      Your message has been successfully submitted and would be delivered to recipients shortly.