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

  • SEARCH
  • Home
  • 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 8850231
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T12:51:12+00:00 2026-06-14T12:51:12+00:00

I noticed some JavaScript code that inspects window.location.port was breaking in IE10 Platform Preview

  • 0

I noticed some JavaScript code that inspects window.location.port was breaking in IE10 Platform Preview 10.0.1008.16421 today.

For instance, in IE10, go to http://www.microsoft.com. Open up the developer tools and type in window.location.port and it returns 80. What happened? Why does IE10 suddenly return the integer 80 when all other IE browsers return the "" (empty string) on the same site? IE10 also returns 80 in all of the downlevel modes.

Compare the result for IE8/9 on http://www.microsoft.com : window.location.port is ""!

Any idea if this is a new behavior for IE10, a logged bug in the platform release, or a has-yet-to-be-reported bug?

  • 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-06-14T12:51:13+00:00Added an answer on June 14, 2026 at 12:51 pm

    This sounds like a bug, although I do not known of any such reported issue:

    The HTML5: 2.6.2 Parsing URLs states that “[the port] is the substring matched by the production, if any.”

    Furthermore, the HTML5: 2.6.6 Interfaces for URL manipulation section gives an example input of http://example.com/carrot#question%3f which specifies that the port should be "" – an (empty string).

    UPDATE

    This is a real bug: http://connect.microsoft.com/IE/feedback/details/817343/ie11-scripting-value-of-htmlanchorelement-host-differs-between-script-created-link-and-link-from-document

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

Sidebar

Related Questions

I was playing around with some Javascript snippets today and noticed that this code
While looking through other people's code, I noticed that some code their javascript/backbone.js in
When working on some Javascript for a web application, I noticed that I had
I was looking over some of our JavaScript compression and noticed that no strings
I've noticed that some simple scripts in JavaScript that work perfectly on my local
i've just noticed that some javascript i;ve just written appears to be leaking memory,
Some of my Javascript lines of code are longer than the editor window view.
I noticed that stackoverflow has some JS code which generates: a warning with Stack
Why do some sites (or advertisers that give clients javascript code) employ a technique
I was looking over the JavaScript source code for SlickGrid . I've noticed that

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.