What's all that stuff in the source code?

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

    What's all that stuff in the source code?


    I've been asked to do a favor to a friend and fix the site at


    I'm totally baffled by the amount of rubbish in the header section; is
    that the kind of coding that Microsoft Publisher does in real life? I've
    always written my code by hand with a text editor, so I have no idea
    what's going on there.

    (Not surprisingly, it is not valid HTML or CSS!)

    Thanks,

    Pierre
    --
    Pierre Jelenc | New on Home Office Records: Ethan Lipton
    | www.homeofficerecords.com www.ethanlipton.com
    The Gigometer | Pepper Of The Earth: the HO blog
    www.gigometer.com | www.homeofficerecords.com/blog
  • Harlan Messinger

    #2
    Re: What's all that stuff in the source code?


    "Pierre Jelenc" <rcpj@panix.com > wrote in message
    news:cgird4$1ki $1@reader1.pani x.com...[color=blue]
    >
    > I've been asked to do a favor to a friend and fix the site at
    > http://www.cwrpartners.com/
    >
    > I'm totally baffled by the amount of rubbish in the header section; is
    > that the kind of coding that Microsoft Publisher does in real life? I've
    > always written my code by hand with a text editor, so I have no idea
    > what's going on there.
    >
    > (Not surprisingly, it is not valid HTML or CSS!)[/color]

    All Microsoft Office products produce web pages like this. It's an elaborate
    layout and data definition language. The proprietary attributes are ignored
    by conforming browsers, and the non-HTML, non-CSS declarations and so on are
    commented out so that non-IE browsers won't see them.

    Comment

    • Pierre Jelenc

      #3
      Re: What's all that stuff in the source code?

      Harlan Messinger <h.messinger@co mcast.net> writes:[color=blue]
      >
      > All Microsoft Office products produce web pages like this. It's an elaborate
      > layout and data definition language. The proprietary attributes are ignored
      > by conforming browsers, and the non-HTML, non-CSS declarations and so on are
      > commented out so that non-IE browsers won't see them.[/color]

      Oy. Thanks; I think I'll beg off the project, I can feel too many
      arguments coming!

      Pierre
      --
      Pierre Jelenc | New on Home Office Records: Ethan Lipton
      | www.homeofficerecords.com www.ethanlipton.com
      The Gigometer | Pepper Of The Earth: the HO blog
      www.gigometer.com | www.homeofficerecords.com/blog

      Comment

      • e n | c k m a

        #4
        Re: What's all that stuff in the source code?

        > I think I'll beg off the project,

        Just start from scratch? Re-write the thing, it wouldn't take too long, i'd
        imagine.


        Comment

        • Beauregard T. Shagnasty

          #5
          Re: What's all that stuff in the source code?

          Quoth the raven Pierre Jelenc:
          [color=blue]
          > I've been asked to do a favor to a friend and fix the site at
          > http://www.cwrpartners.com/[/color]

          Yikes. 267KB for one page!
          [color=blue]
          > I'm totally baffled by the amount of rubbish in the header section; is
          > that the kind of coding that Microsoft Publisher does in real life? I've
          > always written my code by hand with a text editor, so I have no idea
          > what's going on there.[/color]

          Feel free to snag this sample, which took me about 10 minutes of copy
          and paste of your page's text.



          Approximately 5KB for page and style sheet.
          [color=blue]
          > (Not surprisingly, it is not valid HTML or CSS!)[/color]

          Not surprisingly, my sample is. <g> Play with the styles to taste.

          --
          -bts
          -This space intentionally left blank.

          Comment

          • Pierre Jelenc

            #6
            Re: What's all that stuff in the source code?

            Beauregard T. Shagnasty <a.nony.mous@ex ample.invalid> writes:[color=blue]
            >
            > Feel free to snag this sample, which took me about 10 minutes of copy
            > and paste of your page's text.
            > http://home.rochester.rr.com/bshagnasty/cwr.html[/color]

            Thanks! Oh so much more civilized...

            Pierre
            --
            Pierre Jelenc | New on Home Office Records: Ethan Lipton
            | www.homeofficerecords.com www.ethanlipton.com
            The Gigometer | Pepper Of The Earth: the HO blog
            www.gigometer.com | www.homeofficerecords.com/blog

            Comment

            • Frances Del Rio

              #7
              Re: What's all that stuff in the source code?

              this code you get when you convert a Word file to an html file (by doing
              file -- save as web page..) it inserts all this rubbish code, which
              only god knows what the purpose of it is.. open any Word file and do
              file -- save as web page, then check out code for new html file, you
              will see all this convoluted code in there.. I mean the stuff it puts
              in is simply mind-boggling...

              <b:OhMorphingCo ntext priv="140e">290 </b:OhMorphingCon text>
              <b:OhGallery priv="180e">259 </b:OhGallery>
              <b:OhFancyBorde rs priv="190e">261 </b:OhFancyBorder s>

              anybody knows what all this is???

              I strongly suggest -- as others have suggested here, and since you do
              know hand-coding -- to recode the site from scratch.. you'll be doing
              your friend a great favor... good luck... :) Frances


              Pierre Jelenc wrote:[color=blue]
              > I've been asked to do a favor to a friend and fix the site at
              > http://www.cwrpartners.com/
              >
              > I'm totally baffled by the amount of rubbish in the header section; is
              > that the kind of coding that Microsoft Publisher does in real life? I've
              > always written my code by hand with a text editor, so I have no idea
              > what's going on there.
              >
              > (Not surprisingly, it is not valid HTML or CSS!)
              >
              > Thanks,
              >
              > Pierre[/color]

              Comment

              • Beauregard T. Shagnasty

                #8
                Re: What's all that stuff in the source code?

                Quoth the raven Frances Del Rio:
                [color=blue]
                > this code you get when you convert a Word file to an html file (by
                > doing file -- save as web page..) it inserts all this rubbish
                > code, which only god knows what the purpose of it is..[/color]

                Bill Gates knows. The purpose is so you can reimport it into the MS
                product without losing formatting.

                <snip>
                [color=blue]
                > I strongly suggest -- as others have suggested here, and since you
                > do know hand-coding -- to recode the site from scratch.. you'll be
                > doing your friend a great favor... good luck... :) Frances[/color]

                Pierre seems happy with the 3.5KB sample rewrite I provided a couple
                of days ago. <g>

                --
                -bts
                -This space intentionally left blank.

                Comment

                Working...