#1070 new

getScrollOffsets fails in Opera

Reported by superruzafa | June 6th, 2010 @ 11:44 PM

When calling alert(document.viewport.getScrollOffsets()) once the document has been loaded in (at least) Opera > 10.10 an error occurs.

Prototype accesses to document.body.scrollLeft when document.body is undefined in Opera.

Uncaught exception: TypeError: Cannot convert 'document.body' to object
Error thrown at line 3170, column 4 in ():

return Element._returnOffset(

called from line 5523, column 10 in (event):

handler.call(element, event);

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Prototype JavaScript library.

Shared Ticket Bins

People watching this ticket