Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3626892
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T23:49:10+00:00 2026-05-18T23:49:10+00:00

I once read a page a few years ago about the various browsers’ differing

  • 0

I once read a page a few years ago about the various browsers’ differing implementations of behaviour when a link with an empty href is clicked.

  • some of them linked to the directory (/path/to/file?query → /path/to/)
  • some of them linked to the exact same URI (/path/to/file?query → /path/to/file?query)
  • some of them linked to the same page (/path/to/file?query → /path/to/file)

…and various other behaviours.

  • Is the behaviour defined in a specification?
  • If so, what is the correct behaviour?
  • If so, have the latest versions of the big five browsers today fixed their implementations?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T23:49:11+00:00Added an answer on May 18, 2026 at 11:49 pm

    Since there’s no "specification" for contents of HREF (at least in HTML 4), the browsers can do whatever they damn well please.

    UPDATE However, aside from HTML, there’s an RFC3986: Uniform Resource Identifier (URI): Generic Syntax. It has section 4.4. Same-Document Reference which says:

    When a URI reference refers to a URI that is, aside from its fragment
    component (if any), identical to the base URI (Section 5.1), that
    reference is called a "same-document" reference. The most frequent
    examples of same-document references are relative references that are empty …

    I do not necessarily read the above as "an empty URI MUST cause the client to reload the same socument’s URI", but it does sound like a "best practice" type of wording; so if I was implementing my own browser I’d almost certainly follow such a behavior.

    On a related note, here’s a good recent 3/2010) roundup of how browsers treat empty src attribute of <img> tag: http://www.nczonline.net/blog/2010/03/16/empty-string-urls-in-html-a-followup/ and http://www.nczonline.net/blog/2010/07/13/empty-string-urls-browser-update/ . Please note that it is a big deal, since having and empty img src would cause the page to endlessly re-load itself in the worst case scenario.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I once read about an open source database for postal codes with geolocation data
I once read that one way to obtain a unique filename in a shell
I read somewhere once that the modulus operator is inefficient on small embedded devices
Once upon a time I read how you detect programmatically for mounted NTFS folders
Everything I read about better PHP coding practices keeps saying don't use require_once because
I've often read that corporations will save millions once Internet Explorer 6 is finally
I always read that it is recommended to set objects to nothing, once I
Once again one of those: Is there an easier built-in way of doing things
Once I've created a variable in the immediate window in C# (VS2008), is there
Once a user starts a session (or logs in, for a registered user, to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.