468,525 Members | 2,191 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,525 developers. It's quick & easy.

Can anyone explain this?

Can anyone explain why the
<ro**@hiddenworld.net>
portion of this html doesn't render in a browser,
but the
<20********************@server.hiddenworld.net>
portion does?

Here is the html code...

<html>

<head>
<title></title>
</head>

<body bgcolor="#FFFFCC">

<table border="1">
<tr>
<td BGCOLOR="#CCCCCC">server</td>
<td BGCOLOR="#CCCCCC">2003-10-10</td>
<td BGCOLOR="#CCCCCC">11:23:46</td>
<td BGCOLOR="#CCCCCC">postfix/qmgr[15198]: 675B11F508:
from=<ro**@hiddenworld.net>, size=417, nrcpt=1 (queue
active)</td>
</tr>
<tr>
<td BGCOLOR="#ffffff">server</td>
<td BGCOLOR="#ffffff">2003-10-10</td>
<td BGCOLOR="#ffffff">11:23:46</td>
<td BGCOLOR="#ffffff">postfix/cleanup[15357]: 675B11F508:
message-id=<20********************@server.hiddenworld.net> </td>
</tr>
</table>
</body>
</html>
Jul 20 '05 #1
3 1836
In article <48**************************@posting.google.com > in
comp.infosystems.www.authoring.html, Ranyart Olias
<di*****@yahoo.com> wrote:
Can anyone explain why the <ro**@hiddenworld.net>
portion of this html doesn't render in a browser, but the
<20********************@server.hiddenworld.net> portion does?

from=<ro**@hiddenworld.net>,


There is no "ro**@hiddenworld.net" tag, so it's pretty clear why
that doesn't render as text. I could ask why your other similarly
coded one does render as text, but when you have invalid HTML all
sorts of oddities are to be expected.

Recode your < and > correctly as &lt; and &gt; and both should
display as you wish.

--
Stan Brown, Oak Road Systems, Cortland County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
2.1 changes: http://www.w3.org/TR/CSS21/changes.html
validator: http://jigsaw.w3.org/css-validator/
Jul 20 '05 #2
"Ranyart Olias" <di*****@yahoo.com> wrote in message
news:48**************************@posting.google.c om...
Can anyone explain why the
<ro**@hiddenworld.net>
portion of this html doesn't render in a browser,
but the
<20********************@server.hiddenworld.net>
portion does?


You need to escape the < > characters, or the HTML parser will think you
have an HTML tag.

&lt;ro**@hiddenworld.net&gt;
&lt;20********************@server.hiddenworld.net& gt;

Regards,
Peter Foti
Jul 20 '05 #3
Ranyart Olias wrote:
Can anyone explain why the
<ro**@hiddenworld.net>
portion of this html doesn't render in a browser,
but the
<20********************@server.hiddenworld.net>
portion does?


Well, any action of displaying or not displaying such sequences of
characters is entirely dependent on a particular browser's error
correction, given that the less than character is reserved as the
starting character for tags and declarations. What you have placed
between the < and > characters is not a valid tag or declaration in HTML
or XHTML, so it's then up to the tender mercies of the browser what to
do in such a case -- display it as raw text, ignore it altogether, or
whistle Dixie. Apparently, the browser you happen to be using decides
to display it as raw text if it starts with a number (because tags never
start with numbers) but to ignore it if it starts with a letter (since
tags start with letters, and though what you put there is not an actual
tag, the browser may think it could possibly be one in a future version
of HTML). I don't think an @ sign right after a sequence of letters is
proper syntax in any tag (past, present, or future) anyway, but some
browsers might be prepared to be forgiving and render a hypothetical
"root" tag from your code, if such a tag existed.

--
== Dan ==
Dan's Mail Format Site: http://mailformat.dan.info/
Dan's Web Tips: http://webtips.dan.info/
Dan's Domain Site: http://domains.dan.info/

Jul 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Chris | last post: by
13 posts views Thread by C++fan | last post: by
reply views Thread by Alan Silver | last post: by
33 posts views Thread by O-('' Q) | last post: by
19 posts views Thread by Alan Silver | last post: by
1 post views Thread by fmendoza | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.