homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

href link change?

 4:43 pm on Jun 22, 2010 (gmt 0)

I had a website I developed a few months back and suddenly it seems the links are all bad. What's happening is all the links I typed like so:

<a href="www.example.net/">visit this site</a>
Browsers assumes means "http://www.example.com/www.example.net/" as if it's a subdomain.

Is this a recent change of W3 standards in handling relative URLs? I could have sworn these all worked originally.

[edited by: tedster at 5:09 am (utc) on Jun 24, 2010]
[edit reason] switch to example.com - it can never be owned [/edit]



 5:35 pm on Jun 22, 2010 (gmt 0)

there has not been a recent change.
they are working as they should

outbound links to external domains should begin with http://


 8:11 am on Jun 23, 2010 (gmt 0)

Your links might work as expected in IE - but not other browsers. IE has been forgiving of omitted "http://" in the past.


 9:19 am on Jun 23, 2010 (gmt 0)

As topr8 says, that is how it should work.
At a guess you had been using a browser that had previously been forgiving but a bug fix or upgrade has corrected this.

I had a similar problem some years ago with tables. One browser assumed a /tr when it found a new row but another didn't. I had been copying and pasting rows and hadn't noticed that I had lost the /tr.

This is why you should always test your site in IE and at least one other browser.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved