-
Notifications
You must be signed in to change notification settings - Fork 439
Fix Microsoft/TypeScript#19277 #311
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
While the setter allows |
|
In TypeScript. Not in raw JavaScript world, sadly. |
i am not sure this is the right fix here... we may need to make this we have favored reading over writing before, favoring writing over reading seems to just change the problem instead of fixing it.. seems like |
Wanted to highlight that this PR is reverted in this commit 9e88bfd As of today window.location = '/' Error:
|
Is there any reason to not use |
Apparently yes. There seems to be some differences between setting Quoting
Was trying to create an issue about this in this repo, however, I am not able to setup an environment to proof those differences mention in the discussion. |
Have you seen that behavior yourself? The mentioned web page doesn't say the href setter will throw (only the getter will), and AFAIK setting |
This comment has been minimized.
This comment has been minimized.
@saschanaz I now understood what you meant by "doesn't say the href setter will throw". I wasn't reading the mentioned web page in detail earlier. Upon testing, it is possible to redirect an iframe by setting both I have tested this behaviour in different browsers.
It seems like all those claims about the special behaviour of setting I agree with you. Right now I see no reason to not use |
Fix microsoft/TypeScript#19277