<NOSCRIPT> does not pass w3c validator

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Paul

    <NOSCRIPT> does not pass w3c validator

    Hello:

    I read the FAQ about embedding HTML code in a Javascript. I have used the "<\/tag>" format
    to get around validator problems. Now the <NOSCRIPT> block is failing with error #65:

    1. Line 52, column 9: document type does not allow element "NOSCRIPT" here; missing one
    of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag

    <NOSCRIPT>

    The offending URL is at: http://pmcferrin.ugate.net/barkhouse...ovalidate.html

    Can someone advise me what I'm doing wrong?

    -paul

  • Neal

    #2
    Re: &lt;NOSCRIPT&gt ; does not pass w3c validator

    On Wed, 26 May 2004 04:07:41 GMT, Paul <""p _ e _ m c f e r r i n \"@ y a
    h o o . c o m . D E L E T E> wrote:
    [color=blue]
    > Hello:
    >
    > I read the FAQ about embedding HTML code in a Javascript. I have used
    > the "<\/tag>" format to get around validator problems. Now the
    > <NOSCRIPT> block is failing with error #65:
    >
    > 1. Line 52, column 9: document type does not allow element
    > "NOSCRIPT" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME",
    > "BUTTON" start-tag
    >
    > <NOSCRIPT>
    >
    > The offending URL is at:
    > http://pmcferrin.ugate.net/barkhouse...ovalidate.html
    >
    > Can someone advise me what I'm doing wrong?
    >
    > -paul
    >[/color]

    Stop relying on Javascript. Serve HTML.

    You don't want to see what your page looks like w/o Javascript. It looks
    like you're a moron, frankly.

    Comment

    • Pierre Goiffon

      #3
      Re: &lt;NOSCRIPT&gt ; does not pass w3c validator

      "Paul" <""p _ e _ m c f e r r i n \"@ y a h o o . c o m . D E L E T E>
      a écrit dans le message de
      news:hKUsc.2876 4$fF3.742394@bg tnsc05-news.ops.worldn et.att.net[color=blue]
      > I read the FAQ about embedding HTML code in a Javascript. I have
      > used the "<\/tag>" format to get around validator problems. Now the
      > <NOSCRIPT> block is failing with error #65:
      >
      > 1. Line 52, column 9: document type does not allow element
      > "NOSCRIPT" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME",
      > "BUTTON" start-tag
      >
      > <NOSCRIPT>
      >
      > The offending URL is at:
      > http://pmcferrin.ugate.net/barkhouse...ovalidate.html[/color]

      It seems the validator doesn't like the html in the document.write( ) - see
      the errors below with "end tag for "A" omitted" for exemple.
      It think you should rewrite that firstly (maybe the html comments aren't
      with the good syntax ?).

      Also I don't understand exactly why JavaScript is necessary for you
      navigation menu ? Seems like you could do without JS

      Comment

      • jake

        #4
        Re: &lt;NOSCRIPT&gt ; does not pass w3c validator

        In message <opr8k94f086v66 56@news.individ ual.net>, Neal
        <neal413@yahoo. com> writes[color=blue]
        >On Wed, 26 May 2004 04:07:41 GMT, Paul <""p _ e _ m c f e r r i n \"@ y
        >a h o o . c o m . D E L E T E> wrote:
        >[color=green]
        >> Hello:
        >>
        >> I read the FAQ about embedding HTML code in a Javascript. I have
        >>used the "<\/tag>" format to get around validator problems. Now the
        >><NOSCRIPT> block is failing with error #65:
        >>
        >> 1. Line 52, column 9: document type does not allow element
        >>"NOSCRIPT" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME",
        >>"BUTTON" start-tag
        >>
        >> <NOSCRIPT>
        >>
        >> The offending URL is at:
        >>http://pmcferrin.ugate.net/barkhouse...ovalidate.html
        >>
        >> Can someone advise me what I'm doing wrong?
        >>
        >> -paul
        >>[/color]
        >
        >Stop relying on Javascript. Serve HTML.
        >
        >You don't want to see what your page looks like w/o Javascript. It
        >looks like you're a moron, frankly.[/color]

        A little harsh, don't do think, Neal?

        If it's a collection of family photos to be looked at by the family,
        does it really matter that he uses JS?

        Personally, I'd be more concerned about resizing the 600k+ photo images
        down to less than 30k each so that dial-up users don't have to wait for
        ever.

        regards.
        --
        Jake

        Comment

        • Neal

          #5
          Re: &lt;NOSCRIPT&gt ; does not pass w3c validator

          On Wed, 26 May 2004 11:38:21 +0100, jake <jake@gododdin. demon.co.uk> wrote:
          [color=blue]
          > In message <opr8k94f086v66 56@news.individ ual.net>, Neal
          > <neal413@yahoo. com> writes[color=green]
          >> Stop relying on Javascript. Serve HTML.
          >>
          >> You don't want to see what your page looks like w/o Javascript. It
          >> looks like you're a moron, frankly.[/color]
          >
          > A little harsh, don't do think, Neal?[/color]

          Perhaps. I was tired. But frankly, I stand by that.
          [color=blue]
          > If it's a collection of family photos to be looked at by the family,
          > does it really matter that he uses JS?[/color]

          Maybe, that's for his family to decide. I don't want to make things
          difficult for my family any more than I already do.
          [color=blue]
          > Personally, I'd be more concerned about resizing the 600k+ photo images
          > down to less than 30k each so that dial-up users don't have to wait for
          > ever.[/color]

          Well, I certainly agree.

          Comment

          • Andy Dingley

            #6
            Re: &lt;NOSCRIPT&gt ; does not pass w3c validator

            Paul <""p _ e _ m c f e r r i n \"@ y a h o o . c o m . D E L E T E> wrote in message news:<hKUsc.287 64$fF3.742394@b gtnsc05-news.ops.worldn et.att.net>...
            [color=blue]
            > The offending URL is at: http://pmcferrin.ugate.net/barkhouse...ovalidate.html
            >
            > Can someone advise me what I'm doing wrong?[/color]


            You're writing HTML when you're clearly a born Perl coder.

            Try submitting it as an entry to the Obfuscated Perl contest - you've
            got a winner here. This is _the_ shonkiest piece of nasty and
            pointless HTML I've seen so far this year. I don't care what it's
            meant to be doing, or why it isn't. After reading that source I want
            to wash my hands, and probably my eyeballs too.

            Comment

            • PeEmm

              #7
              Re: &lt;NOSCRIPT&gt ; does not pass w3c validator

              Paul skrev 2004-05-26 06:07:
              [color=blue]
              > Hello:
              >
              > I read the FAQ about embedding HTML code in a Javascript. I have used the "<\/tag>" format
              > to get around validator problems. Now the <NOSCRIPT> block is failing with error #65:
              >
              > 1. Line 52, column 9: document type does not allow element "NOSCRIPT" here; missing one
              > of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag
              >
              > <NOSCRIPT>
              >
              > The offending URL is at: http://pmcferrin.ugate.net/barkhouse...ovalidate.html
              >
              > Can someone advise me what I'm doing wrong?
              >
              > -paul
              >[/color]

              NOSCRIPT is only allowed inside block elements, but you have put it
              inside the FONT and B elements, which are inline.
              --
              /P.M.

              Comment

              • joe

                #8
                Re: &lt;NOSCRIPT&gt ; does not pass w3c validator

                Some info that may help:

                ABOUT <NOSCRIPT>

                Contents:

                Block-level elements, inline elements

                Contained in:

                APPLET, BLOCKQUOTE, BODY, BUTTON, CENTER, DD, DEL, DIV, FIELDSET, FORM,
                IFRAME, INS, LI, MAP, NOFRAMES, NOSCRIPT, OBJECT, TD, TH


                Comment

                • Harlan Messinger

                  #9
                  Re: &lt;NOSCRIPT&gt ; does not pass w3c validator

                  "joe" <joevelez@veriz on.net> wrote:
                  [color=blue]
                  >Some info that may help:
                  >
                  >ABOUT <NOSCRIPT>
                  >
                  >Contents:
                  >
                  >Block-level elements, inline elements
                  >
                  >Contained in:
                  >
                  >APPLET, BLOCKQUOTE, BODY, BUTTON, CENTER, DD, DEL, DIV, FIELDSET, FORM,
                  >IFRAME, INS, LI, MAP, NOFRAMES, NOSCRIPT, OBJECT, TD, TH[/color]

                  Odd that SCRIPT would be inline and NOSCRIPT would be block. I realize
                  that if NOSCRIPT were inline, then it wouldn't be able to contain
                  blocks, which would be a different problem. I wonder if it could have
                  been left bivalent as INS and DEL are.

                  --
                  Harlan Messinger
                  Remove the first dot from my e-mail address.
                  Veuillez ôter le premier point de mon adresse de courriel.

                  Comment

                  • Paul

                    #10
                    Re: &lt;NOSCRIPT&gt ; does not pass w3c validator



                    Harlan Messinger wrote:[color=blue]
                    > "joe" <joevelez@veriz on.net> wrote:
                    >
                    >[color=green]
                    >>Some info that may help:
                    >>
                    >>ABOUT <NOSCRIPT>
                    >>
                    >>Contents:
                    >>
                    >>Block-level elements, inline elements
                    >>
                    >>Contained in:
                    >>
                    >>APPLET, BLOCKQUOTE, BODY, BUTTON, CENTER, DD, DEL, DIV, FIELDSET, FORM,
                    >>IFRAME, INS, LI, MAP, NOFRAMES, NOSCRIPT, OBJECT, TD, TH[/color]
                    >
                    >
                    > Odd that SCRIPT would be inline and NOSCRIPT would be block. I realize
                    > that if NOSCRIPT were inline, then it wouldn't be able to contain
                    > blocks, which would be a different problem. I wonder if it could have
                    > been left bivalent as INS and DEL are.
                    >[/color]

                    Thanks for pointing that out. I just assummed that if SCRIPT was inline, then certainly
                    NOSCRIPT would also be inline.

                    This is one of just seveal thousand HTML files using the same basic syntax. All files are
                    residing on a CD (in the end) so there is no option of using a web server. The CD is
                    basically a family CD ( http://pmcferrin.ugate.net/demo/offer.html ). I find it necessary
                    to use Javascript because of the need to dynamically resize images to make optimum use of
                    the user's screen size; regardless of the user's monitor resolution.

                    The HTML template that I used in writing the HTML generator was written several years ago
                    before the HTML validator came onto the scene. It's only recently that I wanted to make the
                    HTML code compliant to help ensure that browsers that come out 20 years later have a chance
                    to still work with antequated HTML on a CD.

                    In retrospec, I probably should have avoided making the HTML code function in a
                    non-javascript environment by making the first page checking to ensure Javascript is enabled
                    before continuing.

                    Yhanks,
                    -paul

                    PS. I know the HTML code is terrible to read! I was a first-year HTML programmer when the
                    template was developed. We all start out somewhere while learning.

                    Comment

                    • PeEmm

                      #11
                      Re: &lt;NOSCRIPT&gt ; does not pass w3c validator

                      Harlan Messinger skrev 2004-05-27 02:17:[color=blue]
                      > "joe" <joevelez@veriz on.net> wrote:
                      >
                      >[color=green]
                      >>Some info that may help:
                      >>
                      >>ABOUT <NOSCRIPT>
                      >>
                      >>Contents:
                      >>
                      >>Block-level elements, inline elements
                      >>
                      >>Contained in:
                      >>
                      >>APPLET, BLOCKQUOTE, BODY, BUTTON, CENTER, DD, DEL, DIV, FIELDSET, FORM,
                      >>IFRAME, INS, LI, MAP, NOFRAMES, NOSCRIPT, OBJECT, TD, TH[/color]
                      >
                      >
                      > Odd that SCRIPT would be inline and NOSCRIPT would be block. I realize
                      > that if NOSCRIPT were inline, then it wouldn't be able to contain
                      > blocks, which would be a different problem. I wonder if it could have
                      > been left bivalent as INS and DEL are.
                      >[/color]

                      SCRIPT is defined as a *special* (inline) entity along these:

                      <!ENTITY % special
                      "A | IMG | OBJECT | BR | SCRIPT | MAP | Q | SUB | SUP | SPAN | BDO">

                      (NOSCRIPT is block and INS/DEL are both as you pointed out.)

                      --
                      /P.M.

                      Comment

                      • Jukka K. Korpela

                        #12
                        Re: &lt;NOSCRIPT&gt ; does not pass w3c validator

                        Harlan Messinger <hmessinger.rem ovethis@comcast .net> wrote:
                        [color=blue]
                        > Odd that SCRIPT would be inline and NOSCRIPT would be block.[/color]

                        The SCRIPT element is for "embedding" a script into HTML, effectively
                        just feeding script code to a browser's script interpreter. Technically
                        it has "content" in HTML, but this is just because the designers of HTML
                        wanted to allow direct embedding of script data.

                        The NOSCRIPT element on the other hand encloses normal HTML content, and
                        it is reasonable to allow blocks there, too.

                        SCRIPT and NOSCRIPT may sound similar, but they really aren't comparable.
                        They would be comparable if SCRIPT meant that its content is to be
                        regarded as part of the content if and only if client-side scripting is
                        enabled in the browser (and different tools would be used for actual
                        inclusion of script code). Actually that would be nice, since it would
                        let us make the presence of <input type="button" ...>, for example,
                        depend on whether scripting is enabled; now we have to write awkward
                        document.write( ...) stuff to generate <input type="button" ...> markup or
                        create the risk of displaying a button that doesn't do anything.
                        [color=blue]
                        > I realize
                        > that if NOSCRIPT were inline, then it wouldn't be able to contain
                        > blocks, which would be a different problem.[/color]

                        Indeed. Typically any useful NOSCRIPT content is a block or blocks,
                        though often a short one, like
                        <noscript>
                        <p><big>Sorry , this page consists of a color picker that does not work
                        without client-side scripting (JavaScript). Your current browser has
                        client-side scripting disabled, or does not support it at all.</big></p>
                        <p>There is <a href="table.htm l">table of colors</a> available for those
                        who cannot use client-side scripting.</p>
                        </noscript>
                        [color=blue]
                        > I wonder if it could have
                        > been left bivalent as INS and DEL are.[/color]

                        INS and DEL are oddities and break the whole idea of inline vs block -
                        which, on the other hand, isn't really such a great idea (though it has
                        some benefits).

                        --
                        Yucca, http://www.cs.tut.fi/~jkorpela/
                        Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

                        Comment

                        • Voetleuce

                          #13
                          Re: Picture of Yukka in my newsreader (was &lt;NOSCRIPT&gt ;)


                          In article <Xns94F67C388DA 54jkorpelacstut fi@193.229.0.31 >,
                          jkorpela@cs.tut .fi says...
                          [color=blue]
                          > ...[/color]

                          There's a little Yucca picture in the top right hand corner of Yukka's
                          post in my Gravity preview pane. Is this an easter egg or has Yukka
                          started posting binaries?

                          Comment

                          • Dave Patton

                            #14
                            Re: Picture of Yukka in my newsreader (was &lt;NOSCRIPT&gt ;)

                            Voetleuce <leuce@leu.ce > wrote in
                            news:MPG.1b3428 3236bcac6098968 0@news.absamail .co.za:
                            [color=blue]
                            >
                            > In article <Xns94F67C388DA 54jkorpelacstut fi@193.229.0.31 >,
                            > jkorpela@cs.tut .fi says...
                            >[color=green]
                            >> ...[/color]
                            >
                            > There's a little Yucca picture in the top right hand corner of Yukka's
                            > post in my Gravity preview pane. Is this an easter egg or has Yukka
                            > started posting binaries?[/color]

                            Neither. He's using a X-Face header:
                            Converts various image formats to the X-Face: format suitable for inclusion in e-mail headers.


                            --
                            Dave Patton
                            Canadian Coordinator, Degree Confluence Project
                            The Degree Confluence Project contains photographs of the intersections of integer latitude and longitude degree lines.

                            My website: http://members.shaw.ca/davepatton/

                            Comment

                            Working...