Skip to main content

Bug Tracker

Side navigation

#7999 closed bug (invalid)

Opened January 18, 2011 01:53PM UTC

Closed February 08, 2011 07:53AM UTC

inconsistent offsetParent of "absolute DOM" in IE 6 8 with other browsers

Reported by: danxia.shidx@alibaba-inc.com Owned by: danxia.shidx@alibaba-inc.com
Priority: undecided Milestone: 1.next
Component: unfiled Version: 1.5b1
Keywords: Cc:
Blocked by: Blocking:
Description

the demo is simple

<!doctype html>

<html>

<head>

<meta charset="gbk" />

<title></title>

</head>

<body>

<div id="test" style="position: absolute;">

</div>

<script src="jquery-1.5b1.js"></script>

<script>

var test=$('#test');

alert(test.offsetParent()[0]===document.body);

</script>

</body>

</html>

in IE 6 7, the result is false, and others is true;

in IE 6 7, the offsetParent.nodeName is HTML!!

Attachments (0)
Change History (3)

Changed January 18, 2011 01:57PM UTC by anonymous comment:1

Changed January 25, 2011 12:48AM UTC by snover comment:2

owner: → danxia.shidx@alibaba-inc.com
status: newpending

I am not clear as to how this is an issue. Could you please provide a test case demonstrating a problem that occurs as a result of this?

Changed February 08, 2011 07:53AM UTC by trac-o-bot comment:3

resolution: → invalid
status: pendingclosed

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!