Ticket #2247 (closed bug: fixed)
$.fn.offset() is shifted by 2px in Quirks Mode
|Reported by:||jeffkretz||Owned by:||brandon|
A recent change made to offset.js (rev 4016) no longer accurately accounts for the 2px html border added by IE in quirks mode.
See two sample pages:
Note the 1px bordered divs are all 2px offset from the images they should be laying in front of.
Is the same code but references a version of jQuery with the offset change rolled back to 4015. All divs are correctly positioned on each image.
Note that adding DOCTYPE strict or DOCTYPE transitional fixes this problem -- it only shows up in quirks mode.