Skip to main content

Bug Tracker

Side navigation

#11623 closed bug (wontfix)

Opened April 23, 2012 06:21PM UTC

Closed April 23, 2012 08:46PM UTC

$(document).width() miscalculation in FF 10.0.1

Reported by: cavo@ynet.sk Owned by: cavo@ynet.sk
Priority: low Milestone: 1.next
Component: dimensions Version: 1.7.2
Keywords: Cc:
Blocked by: Blocking:
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.

Attachments (0)
Change History (4)

Changed April 23, 2012 06:44PM UTC by cavo@ynet.sk comment:1

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

Changed April 23, 2012 07:25PM UTC by rwaldron comment:2

component: unfileddimensions
milestone: None1.next
owner: → cavo@ynet.sk
priority: undecidedlow
status: newpending

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.

Changed April 23, 2012 08:44PM UTC by mikesherov comment:3

Do we even support quirks mode?

Changed April 23, 2012 08:46PM UTC by rwaldron comment:4

resolution: → wontfix
status: pendingclosed