Why does Internet Explorer not support bookmarks with both a querystring and a hash/anchor? Firefox works properly

帅比萌擦擦* 提交于 2019-12-02 17:26:14

问题


I am using anchor-bookmarks to move to the top, middle or bottom of the page when the page loads.
EG: <a name="mid"></a>

Now, when I simply pass an anchor-bookmark(#) in my URL then it is working perfectly in both IE and FF browsers.
EG: http://.../Test.aspx#mid

But, if I pass the same anchor-bookmark(#) along with any querystring in my URL then its NOT WORKING in IE. FF works fine.
EG: http://.../Test.aspx?a=b&c=d#mid

WHY is it not working with IE?


回答1:


Bug. RFC3986 shows it's perfectly OK: foo://example.com:8042/over/there?name=ferret#nose



来源:https://stackoverflow.com/questions/6703749/why-does-internet-explorer-not-support-bookmarks-with-both-a-querystring-and-a-h

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!