document.links['myLink'] does not work

Fixed Issue #105278

Details

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

Sign in to watch or report this issue.

Steps to reproduce

URL = http://jsfiddle.net/qy66w/

URL:

Repro Steps:

Test HTML:

<!DOCTYPE html>
<html>
<head>
</head>
<body>
<form id="myForm"></form>
<a href="file2.html" id="myLink">My Link</a>
<h2>Hello</h2>
<script type="text/javascript">
console.log(typeof document.links[‘myLink’]);
console.log(typeof document.links.namedItem(‘myLink’));
</script>
</body>
</html>

Console Output:
undefined
object

See this jsfiddle: http://jsfiddle.net/qy66w/ and look at the console.

Expected Results:

document.links[‘myLink’] should return the link identified by id ‘myLink’ same as document.links.namedItem(‘myLink’)

Actual Results:

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Eugene V.”

      Changed Status to “Site Outreach”

      Changed Status from “Site Outreach” to “Won’t fix”

      Changed Status from “Won’t fix” to “Fixed”

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

    Sign in