Steps to reproduce
Constructed anchor (
a) elements that have an assigned
href result in the
origin property being
undefined. This is inconsistent with all other major browsers.
var link = document.createElement('a'); link.href = "https://google.com"; console.log('origin is: '); console.log(link.origin);
origin is: undefined
Chrome Result (and all others)
origin is: "https://google.com"
This is particularly an issue when using libraries that rely this functionality such as AngularJS. Issues have been opened with the library which result in hacky, insecure workarounds as outlined here:
Comments and activity
Changed Steps to Reproduce
- Microsoft Edge Team
Changed Assigned To to “James M.”
Changed Assigned To to “Travis L.”
Changed Assigned To from “Travis L.” to “Kris K.”
Changed Status to “Confirmed”
Changed Assigned To from “Kris K.” to “Nishant S.”
Changed Status from “Confirmed” to “Fixed”
I still observe this issue. It is not fixed in Microsoft Edge 41.16299.248.0.