URL anchor is attached to the title attribute in Internet Explorer — why?

删除回忆录丶 提交于 2019-12-07 13:28:22

问题


I found a weird bug that only occurs in Internet Explorer (6 through 9).

Take for example the URL http://www.spiegel.de/#any_anchor_value which I open in any Internet Explorer. (From what I can tell it works with any URL)

As soon as the page finishes loading, that anchor tag is attached to the title of the browser window. (In this case even twice…)

When I inspect the DOM of this page, it even appears in the title tag:

This works on any website and in any version of the Internet Explorer from 6 through 9.

I can't seem to find much information on this nor have I ever heard of it or even noticed it.

What's the reason for this? What am I missing?


回答1:


It is actually the adobe flash embed on the page that is causing the problem. You get an additional anchor for each instance of flash embedded on the page.

Adobe bug report: http://bugs.adobe.com/jira/browse/FP-240

Other references: http://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/c91e3dc4-ef05-47f9-b799-db149e3ddc80/




回答2:


it seems because the required id(e.g. any_anchor_value) is not found in the page.



来源:https://stackoverflow.com/questions/6436142/url-anchor-is-attached-to-the-title-attribute-in-internet-explorer-why

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