Link starts with <br />

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • José Carlos Santos

    Link starts with <br />

    Hi all,

    If you are using IE, Netscape, Mozilla or, I would guess, several
    other browsers, and if you put the cursor over a link (without
    clicking) you can see the address of the new web page at the bottom
    of the browser window.

    Consider now this HTML file:

    <html>
    <head>
    <title>Link</title>
    </head>
    <body>
    a<a href="<br />http://www.abc.com">b</a>c
    </body>

    The link has a stupid error: it starts with <br />. Now, suppose that
    I put this HTML file at the web and that its URL is, say,
    http://www.I_love_spam.com. My question is: why is it that if I use one
    of the above mentioned browsers to read this file and if I put the
    cursor over the link, instead of simply seing "<br />http://www.abc.com"
    what I get is "http://www.I_love_spam .com/<br />http://www.abc.com"?

    Best regards,

    Jose Carlos Santos
  • Bertilo Wennergren

    #2
    Re: Link starts with &lt;br /&gt;

    José Carlos Santos:
    [color=blue]
    > <a href="<br />http://www.abc.com">b</a>[/color]
    [color=blue]
    > My question is: why is it that if I use one
    > of the above mentioned browsers to read this file and if I put the
    > cursor over the link, instead of simply seing "<br />http://www.abc.com"
    > what I get is "http://www.I_love_spam .com/<br />http://www.abc.com"?[/color]

    If the link adress would be e.g. "SOMENONSEN SE" and the URL of the page
    would be "http://somewhere", then you would see
    "http://somewhere/SOMENONSENSE". Same thing.

    The "http://" part is not treated as a normal "http://" since the adress
    doesn't start with "http://". It starts with "<br />".

    --
    Bertilo Wennergren <bertilow@gmx.n et> <http://www.bertilow.co m>

    Comment

    • José Carlos Santos

      #3
      Re: Link starts with &lt;br /&gt;

      Bertilo Wennergren wrote:
      [color=blue][color=green]
      >> My question is: why is it that if I use one
      >> of the above mentioned browsers to read this file and if I put the
      >> cursor over the link, instead of simply seing "<br />http://www.abc.com"
      >> what I get is "http://www.I_love_spam .com/<br />http://www.abc.com"?[/color]
      >
      > If the link adress would be e.g. "SOMENONSEN SE" and the URL of the page
      > would be "http://somewhere", then you would see
      > "http://somewhere/SOMENONSENSE". Same thing.
      >
      > The "http://" part is not treated as a normal "http://" since the adress
      > doesn't start with "http://". It starts with "<br />".[/color]

      Sure. Sorry for my stupid question.

      Best regards,

      Jose Carlos Santos

      Comment

      Working...