Discussion:
IE8 and offsetParent is incorrect
(too old to reply)
trichins
2008-10-17 20:53:01 UTC
Permalink
I don't know where else to post this bug but if you have a table row and try
and access its offsetParent, IE8 gives different results than IE7 and
Firefox. If you change IE8 to use IE7 mode, it works. This web page tests
this issue:

http://dump.testsuite.org/2006/dom/style/offset/023.htm

Access it with FF, IE7, or IE8 in IE7 mode and it will pass. But if you
access it with IE8, it will fail. This is causing a bug in Omniture's
products as it is depending on offsetParent to figure out the actual top/left
of an element.

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/communities/newsgroups/list/en-us/default.aspx?mid=ce872914-10e2-4975-a26d-7a9cb5a3f291&dg=microsoft.public.internetexplorer.beta
Ranjith Stephen
2010-04-13 08:10:01 UTC
Permalink
"If the position style property of an element is set to 'absolute',
'relative' or 'static', then the element is the offsetParent of its child
elements. "
By adding the position tag solves the problem !!
Post by trichins
I don't know where else to post this bug but if you have a table row and try
and access its offsetParent, IE8 gives different results than IE7 and
Firefox. If you change IE8 to use IE7 mode, it works. This web page tests
http://dump.testsuite.org/2006/dom/style/offset/023.htm
Access it with FF, IE7, or IE8 in IE7 mode and it will pass. But if you
access it with IE8, it will fail. This is causing a bug in Omniture's
products as it is depending on offsetParent to figure out the actual top/left
of an element.
----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.
http://www.microsoft.com/communities/newsgroups/list/en-us/default.aspx?mid=ce872914-10e2-4975-a26d-7a9cb5a3f291&dg=microsoft.public.internetexplorer.beta
rob^_^
2010-04-13 19:50:16 UTC
Permalink
http://blogs.msdn.com/ie/archive/2010/03/25/filing-a-great-bug.aspx
Post by Ranjith Stephen
"If the position style property of an element is set to 'absolute',
'relative' or 'static', then the element is the offsetParent of its child
elements. "
By adding the position tag solves the problem !!
Post by trichins
I don't know where else to post this bug but if you have a table row and try
and access its offsetParent, IE8 gives different results than IE7 and
Firefox. If you change IE8 to use IE7 mode, it works. This web page tests
http://dump.testsuite.org/2006/dom/style/offset/023.htm
Access it with FF, IE7, or IE8 in IE7 mode and it will pass. But if you
access it with IE8, it will fail. This is causing a bug in Omniture's
products as it is depending on offsetParent to figure out the actual top/left
of an element.
----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.
http://www.microsoft.com/communities/newsgroups/list/en-us/default.aspx?mid=ce872914-10e2-4975-a26d-7a9cb5a3f291&dg=microsoft.public.internetexplorer.beta
Loading...