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

Re: [jslint] checking HTML

Expand Messages
  • Mark Volkmann
    Thanks! I can see that approach will work, but what s the point of the fragment option if you have to do that? My HTML fragments do not contain incomplete tag
    Message 1 of 5 , Feb 8, 2010
    • 0 Attachment
      Thanks! I can see that approach will work, but what's the point of the
      fragment option if you have to do that? My HTML fragments do not contain
      incomplete tag pairs. They just don't have html, head and body tags.

      On Sun, Feb 7, 2010 at 10:20 PM, Cheney, Edward A SSG RES USAR USARC <
      austin.cheney@...> wrote:

      >
      >
      > If your HTML fragment contains incomplete tag pairs, such starting code in
      > this fragment and closing the block in another fragment, JSLint will report
      > errors. If your fragment is fully inclusive you can push your fragment
      > through an empty HTML template to simulate a full page. Such a template
      > example could be:
      >
      > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "
      > http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html lang="en" xmlns="
      > http://www.w3.org/1999/xhtml"><head><title>x</title> <meta
      > http-equiv="content-type" content="text/html;charset=UTF-8"/></head><body>
      > <!-- your code here -->
      > </body></html>
      >
      >



      --
      R. Mark Volkmann
      Object Computing, Inc.


      [Non-text portions of this message have been removed]
    Your message has been successfully submitted and would be delivered to recipients shortly.