URL 锚点附加到 Internet Explorer 中的标题属性为什么?
我发现了一个只出现在 Internet Explorer(6 到 9)中的奇怪错误。
以我在任何 Internet Explorer 中打开的 URL http://www.spiegel.de/#any_anchor_value
为例。 (据我所知,它适用于任何 URL)
一旦页面完成加载,该锚标记就会附加到浏览器窗口的标题上。 (在这种情况下甚至两次......)
当我检查此页面的 DOM 时,它甚至出现在标题中标签:
这适用于任何网站以及 Internet Explorer 6 到 9 的任何版本。
我不能似乎找到了很多这方面的信息我也从未听说过它,甚至没有注意到它。
这是什么原因呢?我缺少什么?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
实际上是页面上嵌入的 adobe flash 导致了问题。对于页面上嵌入的每个 Flash 实例,您都会获得一个额外的锚点。
Adobe 错误报告:
http://bugs.adobe.com/jira/browse/FP-240
其他参考:
http://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/c91e3dc4-ef05-47f9-b799-db149e3ddc80/
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/
似乎是因为在页面中找不到所需的id(例如any_anchor_value)。
it seems because the required id(e.g. any_anchor_value) is not found in the page.