Opened 10 years ago
Closed 10 years ago
#12139 closed bug (fixed)
ie7 offsetParent bug
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | low | Milestone: | None |
Component: | offset | Version: | 1.8.0 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
$("<div>").css({"position":"absolute"}).appendTo(document.body).offsetParent()[0].tagName in ie6 7
it return "HTML",not "BODY".
Change History (4)
comment:1 Changed 10 years ago by
comment:2 follow-up: 3 Changed 10 years ago by
Component: | unfiled → offset |
---|---|
Priority: | undecided → low |
Status: | new → open |
Version: | 1.7.2 → 1.8.0 |
Confirmed.
Other browsers return 'body', which is the correct element to return.
comment:3 Changed 10 years ago by
Replying to sindresorhus:
Confirmed.
Other browsers return 'body', which is the correct element to return.
in version 1.8.0,it don't fix this bug at ie7,it still return "HTML" not "BODY",i don't kown why
comment:4 Changed 10 years ago by
Resolution: | → fixed |
---|---|
Status: | open → closed |
Fixes #12139, make sure absolutely positioned elements have HTML as offsetParent, closes gh-1010
Changeset: 8121309694630d3cb29e5b8dc4ad81527a5bb494
Note: See
TracTickets for help on using
tickets.
http://jsfiddle.net/kQWW8/embedded/result/