简体   繁体   English

URL锚点附加到Internet Explorer中的title属性 - 为什么?

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

I found a weird bug that only occurs in Internet Explorer (6 through 9). 我发现了一个只出现在Internet Explorer(6到9)中的奇怪错误。

Take for example the URL http://www.spiegel.de/#any_anchor_value which I open in any Internet Explorer. 以我在任何Internet Explorer中打开的URL http://www.spiegel.de/#any_anchor_value为例。 (From what I can tell it works with any URL) (从我可以告诉它适用于任何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…) (在这种情况下甚至两次......)

IE标题栏

When I inspect the DOM of this page, it even appears in the title tag: 当我检查此页面的DOM时,它甚至出现在标题标记中:

IE DOM

This works on any website and in any version of the Internet Explorer from 6 through 9. 这适用于从6到9的任何网站和任何版本的Internet Explorer。

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? 我错过了什么?

It is actually the adobe flash embed on the page that is causing the problem. 它实际上是嵌入在页面上的adobe flash导致问题。 You get an additional anchor for each instance of flash embedded on the page. 您可以为页面上嵌入的每个Flash实例获取一个额外的锚点。

Adobe bug report: http://bugs.adobe.com/jira/browse/FP-240 Adobe错误报告: 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/ 其他参考文献: http//social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/c91e3dc4-ef05-47f9-b799-db149e3ddc80/

似乎是因为在页面中找不到所需的id(例如any_anchor_value)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM