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).
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开发者_如何学Go 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?
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/
it seems because the required id(e.g. any_anchor_value) is not found in the page.
精彩评论