Ticket #11623 (closed bug: wontfix)
$(document).width() miscalculation in FF 10.0.1
| Reported by: | cavo@… | Owned by: | cavo@… |
|---|---|---|---|
| Priority: | low | Milestone: | 1.next |
| Component: | dimensions | Version: | 1.7.2 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
$(document).width() returns (buggy) the same value as $(window).width() in FF 10.0.1 on page where document width is bigger than window (viewport) width. You can check it by creating a test page so wide, that horizontal scrollbar is displayed. This bug IS present in 1.7.2 but IS NOT present in 1.7.1. I discovered it while implementing "block-ui mask" on such wide page (soo wide data table). I compared it to IE7 as well - there is no problem. THX.
Change History
comment:2 Changed 13 months ago by rwaldron
- Owner set to cavo@…
- Priority changed from undecided to low
- Status changed from new to pending
- Component changed from unfiled to dimensions
- Milestone changed from None to 1.next
Thanks for taking the time to contribute to the jQuery project! Please provide a complete reduced test case on jsFiddle to help us assess your ticket!
Additionally, be sure to test against the "jQuery (edge)" version to ensure the issue still exists. To get you started, use this boilerplate: http://jsfiddle.net/FrKyN/ Open the link and click to "Fork" (in the top menu) to begin.
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

I forgot to add: this bug happens in quirks mode only - when no DOCTYPE is specified. Therefore You can't test in using jsFiddle.