HighDots Forums  

What's all that stuff in the source code?

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss What's all that stuff in the source code? in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Pierre Jelenc
 
Posts: n/a

Default What's all that stuff in the source code? - 08-25-2004 , 03:04 PM







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
--
Pierre Jelenc | New on Home Office Records: Ethan Lipton
Quote:
www.homeofficerecords.com www.ethanlipton.com
The Gigometer | Pepper Of The Earth: the HO blog
www.gigometer.com | www.homeofficerecords.com/blog


Reply With Quote
  #2  
Old   
Harlan Messinger
 
Posts: n/a

Default Re: What's all that stuff in the source code? - 08-25-2004 , 03:12 PM







"Pierre Jelenc" <rcpj (AT) panix (DOT) com> wrote

Quote:
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!)
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.



Reply With Quote
  #3  
Old   
Pierre Jelenc
 
Posts: n/a

Default Re: What's all that stuff in the source code? - 08-25-2004 , 10:56 PM



Harlan Messinger <h.messinger (AT) comcast (DOT) net> writes:
Quote:
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.
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
Quote:
www.homeofficerecords.com www.ethanlipton.com
The Gigometer | Pepper Of The Earth: the HO blog
www.gigometer.com | www.homeofficerecords.com/blog


Reply With Quote
  #4  
Old   
e n | c k m a
 
Posts: n/a

Default Re: What's all that stuff in the source code? - 08-26-2004 , 02:19 AM



Quote:
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.




Reply With Quote
  #5  
Old   
Beauregard T. Shagnasty
 
Posts: n/a

Default Re: What's all that stuff in the source code? - 08-26-2004 , 02:30 PM



Quoth the raven Pierre Jelenc:

Quote:
I've been asked to do a favor to a friend and fix the site at
http://www.cwrpartners.com/
Yikes. 267KB for one page!

Quote:
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.
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

Approximately 5KB for page and style sheet.

Quote:
(Not surprisingly, it is not valid HTML or CSS!)
Not surprisingly, my sample is. <g> Play with the styles to taste.

--
-bts
-This space intentionally left blank.


Reply With Quote
  #6  
Old   
Pierre Jelenc
 
Posts: n/a

Default Re: What's all that stuff in the source code? - 08-28-2004 , 10:41 AM



Beauregard T. Shagnasty <a.nony.mous (AT) example (DOT) invalid> writes:
Quote:
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
Thanks! Oh so much more civilized...

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


Reply With Quote
  #7  
Old   
Frances Del Rio
 
Posts: n/a

Default Re: What's all that stuff in the source code? - 08-28-2004 , 12:40 PM



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:OhMorphingContext priv="140e">290</b:OhMorphingContext>
<b:OhGallery priv="180e">259</b:OhGallery>
<b:OhFancyBorders priv="190e">261</b:OhFancyBorders>

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:
Quote:
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


Reply With Quote
  #8  
Old   
Beauregard T. Shagnasty
 
Posts: n/a

Default Re: What's all that stuff in the source code? - 08-28-2004 , 03:20 PM



Quoth the raven Frances Del Rio:

Quote:
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..
Bill Gates knows. The purpose is so you can reimport it into the MS
product without losing formatting.

<snip>

Quote:
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 seems happy with the 3.5KB sample rewrite I provided a couple
of days ago. <g>

--
-bts
-This space intentionally left blank.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.