Validation

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jean Pierre Daviau

    Validation

    Ho to everyone,


    ======== http://validator.w3.or g/check?uri=' ===========

    I would like to rewrite this script to validate files from my desktop.



    Thanks for your attention.





    ------
    <SCRIPT type="text/javascript"docu ment.write(' <a
    href="http://validator.w3.or g/check?uri=' + document.URL + '">valid XHTML
    1.1</a>');</SCRIPT>
    -------
    --
    Jean Pierre Daviau

    --
    windows XP professionnel 2002 SP2
    asus p4 s533/333/133



    Aimons les étrangers; l'on vit avec eux les trois quart de notre vie.


  • Stevo

    #2
    Re: Validation

    Jean Pierre Daviau wrote:
    Ho to everyone,
    Ho to you too :)
    ======== http://validator.w3.or g/check?uri=' ===========
    I would like to rewrite this script to validate files from my desktop.
    That's nice for you. Hope it's a fun and useful project.
    Thanks for your attention.
    You're welcome.

    Comment

    • Jukka K. Korpela

      #3
      Re: Validation

      Scripsit Jean Pierre Daviau:
      I would like to rewrite this script to validate files from my desktop.
      That has nothing to do with stylesheets.
      <SCRIPT type="text/javascript"docu ment.write(' <a
      href="http://validator.w3.or g/check?uri=' + document.URL + '">valid
      XHTML 1.1</a>');</SCRIPT>
      -------
      Huh? Using JavaScript to generate a simple link is odd, and it is even
      odder to do so using non-XHTML syntax for the <scriptelemen t and
      document.write( ).

      Besides, the W3C Markup Validator already has a "validate by file
      upload" feature.

      But this has nothing to do with stylesheets.

      --
      Jukka K. Korpela ("Yucca")


      Comment

      • Safalra (Stephen Morley)

        #4
        Re: Validation

        On Sun, 15 Jun 2008 07:48:15 -0400, Jean Pierre Daviau wrote:
        ======== http://validator.w3.or g/check?uri=' ===========
        >
        I would like to rewrite this script to validate files from my desktop.
        >
        Thanks for your attention.
        >
        ------
        <SCRIPT type="text/javascript"docu ment.write(' <a
        href="http://validator.w3.or g/check?uri=' + document.URL + '">valid XHTML
        1.1</a>');</SCRIPT>

        If you want to have a link to validate a file even when it's offline you'd
        have to use some clever JavaScript to make a POST request in the same way
        the validator's 'direct input' form does. What's wrong with just uploading
        the file? Or using a browser extension that tells you whether the page
        you're currently viewing is valid?


        --
        Safalra (Stephen Morley)

        The 'white-space' Property In CSS:

        Comment

        • Jean Pierre Daviau

          #5
          Re: Validation

          That has nothing to do with stylesheets.
          >
          ><SCRIPT type="text/javascript"docu ment.write(' <a
          >href="http://validator.w3.or g/check?uri=' + document.URL + '">valid
          >XHTML 1.1</a>');</SCRIPT>
          >-------

          <p><SCRIPT type="text/javascript"docu ment.write('<A
          HREF="http://jigsaw.w3.org/css-validator/validator?uri=' + document.URL +
          '">CSS validation</a>');</SCRIPT></p>

          This is to automatically input a address for validation in my web pages I
          create with ... notepad....
          Test it here:



          I would like to rewrite this script to validate files uploaded from my
          desktop. Something like:

          HREF="http://jigsaw.w3.org/css-validator/validator#valid ate_by_upload?f ile=C:\



          I will try on a javascript group.

          Thanks for your attention.


          Comment

          • Bergamot

            #6
            Re: Validation


            Jean Pierre Daviau wrote:
            >
            <p><SCRIPT type="text/javascript"docu ment.write('<A
            HREF="http://jigsaw.w3.org/css-validator/validator?uri=' + document.URL +
            '">CSS validation</a>');</SCRIPT></p>
            >
            This is to automatically input a address for validation in my web pages
            You don't need JavaScript at all. Look up the 'referer' option, i.e.
            W3C's easy-to-use markup validation service, based on SGML and XML parsers.


            --
            Berg

            Comment

            • Rik Wasmus

              #7
              Re: Validation

              On Mon, 16 Jun 2008 13:35:03 +0200, Bergamot <bergamot@visi. comwrote:
              >
              Jean Pierre Daviau wrote:
              >>
              > <p><SCRIPT type="text/javascript"docu ment.write('<A
              >HREF="http://jigsaw.w3.org/css-validator/validator?uri=' + document.URL
              >+
              >'">CSS validation</a>');</SCRIPT></p>
              >>
              >This is to automatically input a address for validation in my web pages
              >
              You don't need JavaScript at all. Look up the 'referer' option, i.e.
              http://validator.w3.org/check/referer

              Hmmm, 'referer' headers are often not send in my experience (either by UA
              setting or possible paranoid firewalls / proxies)
              --
              Rik Wasmus
              ....spamrun finished

              Comment

              • Bergamot

                #8
                Re: Validation


                Rik Wasmus wrote:
                On Mon, 16 Jun 2008 13:35:03 +0200, Bergamot <bergamot@visi. comwrote:>
                Hmmm, 'referer' headers are often not send in my experience (either by UA
                setting or possible paranoid firewalls / proxies)
                Well, considering links to the validator are pretty useless anyway, does
                it really matter?

                There are other ways to validate single pages without it, such as with
                the Web Developer Toolbar extension. That's something any interested
                party, not just the author, can use.

                --
                Berg

                Comment

                • Rik Wasmus

                  #9
                  Re: Validation

                  On Mon, 16 Jun 2008 17:42:50 +0200, Bergamot <bergamot@visi. comwrote:
                  Rik Wasmus wrote:
                  >On Mon, 16 Jun 2008 13:35:03 +0200, Bergamot <bergamot@visi. comwrote:>>
                  >Hmmm, 'referer' headers are often not send in my experience (either by
                  >UA
                  >setting or possible paranoid firewalls / proxies)
                  >
                  Well, considering links to the validator are pretty useless anyway, does
                  it really matter?
                  >
                  There are other ways to validate single pages without it, such as with
                  the Web Developer Toolbar extension. That's something any interested
                  party, not just the author, can use.
                  >
                  I'd say so. The general public doesn't care one lick, and the people who
                  do know how to check it. Don't supply a possibly failing link then. None
                  would be best :).
                  --
                  Rik Wasmus
                  ....spamrun finished

                  Comment

                  Working...