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

3069Script Tag Descending From Fieldset

Expand Messages
  • Owen
    Nov 16, 2012
    • 0 Attachment
      While using jslint on some html with inline script, I run into the following error:
      A '<script>' must be within '< body div frame head iframe p pre span >'.
      Jslint halts immediately when detecting this problem.

      A much abridged version of my html is:
      <html>
      <head> … </head>
      <body>
      <form>
      <fieldset>
      <legend> … </legend>
      <script> …

      This code does seem to be valid html.
      Is there any reason (standards, style, whatever) that jslint requires that script tags should not descend from fieldset tags in addition to the others which it permits?
    • Show all 3 messages in this topic