Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > alt.computer > #9791

Re: HTML-like stuff on websites

From VanguardLH <V@nguard.LH>
Newsgroups alt.computer
Subject Re: HTML-like stuff on websites
Date 2016-02-17 23:12 -0600
Organization Usenet Elder
Message-ID <dil25mFs54hU1@mid.individual.net> (permalink)
References <hTxwy.28330$zm6.6974@fx20.iad> <dig0jjFik8uU1@mid.individual.net> <0q8xy.5472$KK.5092@fx19.iad>

Show all headers | View raw


Robert Baer wrote on 2016/02/17:

> VanguardLH wrote:
>> Robert Baer wrote on 2016/02/15:
>>
>>>     One sample (http://www.manta.com/c/mm3cvvy/m-tron-components-inc)
>>>
>>> !doctype html>  html>  head>  meta charset "UTF-8">  style>a.rh-ms-mute-undo
>>> {color:#0000ff;}body,table,div,ul,li{margin:0;padding:0}body{font-family:"Times
>>> New Roman","Times New Roman",serif;}#adunit {background-color:
>>> #ffffff;height: 250px;width: 300px;}#ads {height: 250px;left:
>>> 0px;position: absolute;top: 0px;width: 300px;}#ads ul{list-style:
>>> none;}#ads ul li {clear: both;float: left;line-height: 0;overflow:
>>> hidden;position: relative; }
>>
>> You never mentioned which web browser you are using and its version, or
>> the OS edition and version.  On Windows 7 Home x64 SP-1, I right-click
>> on the body, select View Source, and see (click on hyperlink to view my
>> window capture):
>>
>> Firefox 44.0
>> http://imgur.com/6GqiiOC
>>
>> IE11:
>> http://imgur.com/UNNmafj
>>
>> I your example, the leading HTML tag delimiter (left parens) is missing
>> from each HTML tag.  Unless there was a screwup in publishing the web
>> page, something is screwed up on your end with whatever web browser you
>> are using, perhaps add-ons you installed, or something interrogating
>> your web traffic (e.g., anti-virus/malware).
>
> I almost always use Win2K and SeaMonkey 2.7; the code you show looks
> exactly like what i purposely get if i right click and select View
> Page Source. Nicely formatted, complete, makes sense type of code.
> What i get is like what i showed (via copy-and-paste
> andisrunwithoutformattingofanysort).
> 
>    FireFox 3.0.5 behaves, so it is definitely browser related.

After using right-click to "View Source", in the window showing the text
for the HTML code, I hit Ctrl+A and Ctrl+C.  Then in Notepad I hit
Ctrl+V and the pasted code looks just like in the Firefox-presented code
window (except the line numbers are omitted).  Just to make sure no
formatting got included in the copy (which is not possible with Notepad
without notice, anyway), I used PureText to do the copy (plain text
only) from clipboard.  Got the same properly formatted stuff.

How are you copying the web page?  

- By highlighting content in the rendered web page, using Ctrl+A to
select it all, and then using Ctrl+C to create a clip in the Windows
Clipboard?  That will never show you the [proper] HTML code.

- By right-clicking and using the web browser's "View Source" and using
Ctrl+A to select all and Ctrl+C to create a clip?  That should work if
the code view is just showing plain text.

- In the 2nd case (copying what "View Source" shows), does Seamonkey
pretty up the HTML code (similar to using HTML Tidy which is available
separately or within an add-on)?  The prettying up would break long
lines into shorter lines, use formatting for indentation, align start
and end HTML tags, and so on.  Go to cnn.com and use View Source.  You
should see just one very long line.  CNN doesn't insert linebreaks to
make their code easy to read.  Linebreaks aren't required to parse HTML
but they make it easy to see the HTML tags.  Aligning the closing tag
with the opening tag along with indenting what is between the tags makes
it easier to read the code.  Again, that is whitespace not required to
parse HTML.

Back to alt.computer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

HTML-like stuff on websites Robert Baer <robertbaer@localnet.com> - 2016-02-15 20:49 -0800
  Re: HTML-like stuff on websites Paul <nospam@needed.com> - 2016-02-16 01:48 -0500
    Re: HTML-like stuff on websites Robert Baer <robertbaer@localnet.com> - 2016-02-17 16:26 -0800
  Re: HTML-like stuff on websites VanguardLH <V@nguard.LH> - 2016-02-16 01:14 -0600
    Re: HTML-like stuff on websites Robert Baer <robertbaer@localnet.com> - 2016-02-17 16:40 -0800
      Re: HTML-like stuff on websites VanguardLH <V@nguard.LH> - 2016-02-17 23:12 -0600
        Re: HTML-like stuff on websites Robert Baer <robertbaer@localnet.com> - 2016-02-19 12:05 -0800
          Re: HTML-like stuff on websites VanguardLH <V@nguard.LH> - 2016-02-19 19:25 -0600
            Re: HTML-like stuff on websites Robert Baer <robertbaer@localnet.com> - 2016-02-20 12:40 -0800
              Re: HTML-like stuff on websites VanguardLH <V@nguard.LH> - 2016-02-20 15:30 -0600
                Re: HTML-like stuff on websites Robert Baer <robertbaer@localnet.com> - 2016-02-20 13:41 -0800
                Re: HTML-like stuff on websites VanguardLH <V@nguard.LH> - 2016-02-20 19:03 -0600
                Re: HTML-like stuff on websites Robert Baer <robertbaer@localnet.com> - 2016-02-21 21:06 -0800
                Re: HTML-like stuff on websites VanguardLH <V@nguard.LH> - 2016-02-22 16:59 -0600
                Re: HTML-like stuff on websites Robert Baer <robertbaer@localnet.com> - 2016-02-24 22:17 -0800
                Re: HTML-like stuff on websites VanguardLH <V@nguard.LH> - 2016-02-25 15:34 -0600
                Re: HTML-like stuff on websites Robert Baer <robertbaer@localnet.com> - 2016-02-25 21:40 -0800
                Re: HTML-like stuff on websites VanguardLH <V@nguard.LH> - 2016-02-26 14:24 -0600
                Re: HTML-like stuff on websites Robert Baer <robertbaer@localnet.com> - 2016-02-27 17:25 -0800

csiph-web