Value of differs between script-created link and link from document

Not reproducible Issue #107251


Apr 27, 2014
This issue is public.
Found in build #
Reported by 0 people

Sign in to watch or report this issue.

Steps to reproduce

Repro Steps:

  1. Open Internet Explorer.
  1. Either open the web page , or save the following code to a .html-file and open it:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<script type="text/javascript">
function query()
var anchor = document.getElementById(‘testlink’);
document.getElementById(‘span1’).innerHTML =;

anchor2 = document.createElement(‘a’);
anchor2.setAttribute('href’, anchor.href);
document.getElementById(‘span2’).innerHTML =;
<a href="" id="testlink">test</a>
<form><input type="button" onclick="query()" value="query"></form>
<p><span id="span1"></span></p>
<p><span id="span2"></span></p>

  1. Click on the query button.

span1 will contain
span2 will contain

They should be the same, since they’re both the value for the host property.

Expected Results:

Return hostname:port in both cases.

Actual Results:


0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “IPBS P.”

      Changed Assigned To from “IPBS P.” to “Bruce M.”

      Changed Assigned To to “Kamen M.”

      Changed Assigned To from “Kamen M.” to “Nikhil K.”

      Changed Assigned To from “Nikhil K.” to “ChakraTriage”

      Changed Assigned To from “ChakraTriage” to “Rob P.”

      Changed Status to “Confirmed”

      Changed Assigned To from “Rob P.” to “Travis L.”

      Changed Steps to Reproduce

      Changed Assigned To from “Travis L.” to “Sergey D.”

      Changed Assigned To from “Sergey D.” to “IPBS P.”

      Changed Status from “Confirmed” to “Not reproducible”

      Changed Assigned To from “IPBS P.” to “Eugene V.”

    You need to sign in to your Microsoft account to add a comment.

    Sign in