Open
Bug 627005
Opened 12 years ago
Updated 5 months ago
document.body.clientWidth always returns 0.
Categories
(Firefox :: General, defect)
Tracking
()
UNCONFIRMED
People
(Reporter: romero, Unassigned)
References
()
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.237 Safari/534.10 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12 Try example code: alert(document.body.clientWidth); The result is "0". Reproducible: Always
Comment 1•12 years ago
|
||
I get 1351 using javascript:alert(document.body.clientWidth); at this bugzila page with Mozilla/5.0 (Windows NT 6.1; rv:2.0b10pre) Gecko/20110119 Firefox/4.0b10pre SeaMonkey/2.1b2pre
![]() |
||
Comment 2•12 years ago
|
||
I get "0" too using Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13 ID:20101203075014 & Mozilla/5.0 (Windows NT 5.1; rv:2.0b10pre) Gecko/20110119 Firefox/4.0b10pre ID:20110119030331
Comment 3•12 years ago
|
||
It works for me also with Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13 and the Firefox startpage. Try it without extensions ?
Yes, I tried without extensions on different machines. Interesting thing: when I use it on major sites - such as www.google.com - it also returns "0". In previous versions of Firefox - document.body.clientWidth worked fine. Strange..
Updated•12 years ago
|
Version: unspecified → 3.6 Branch
Updated•5 months ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•