Opera bug with calculating element width

D

delerious

These browser inconsistencies are starting to drive me crazy!

Here's an Opera 7.22 bug I just found:

When calculating an element's width using
document.defaultView.getComputedStyle(element,'').getPropertyValue('width'),
Opera includes the element's padding, which is wrong.

Mozilla does not include the padding.
 
K

kayodeok

(e-mail address removed) wrote in
Here's an Opera 7.22 bug I just found:

When calculating an element's width using
document.defaultView.getComputedStyle(element,'').getPropertyValu
e('width'), Opera includes the element's padding, which is
wrong.

Upgrade to Opera 7.23 - though I am not sure whether or not you will
still encounter the bug; but there are security issues involved with
7.22 anyway:

http://www.secunia.com/advisories/10425/
http://www.secunia.com/advisories/10277/

In anycase, the above sounds like JavaScript and Opera was never
strong in that department.
 
D

delerious

Upgrade to Opera 7.23 - though I am not sure whether or not you will
still encounter the bug; but there are security issues involved with
7.22 anyway:

Just upgraded. Opera 7.23 still suffers from the bug. :-(
 
T

Toby A Inkster

kayodeok said:
Upgrade to Opera 7.23 - though I am not sure whether or not you will
still encounter the bug; but there are security issues involved with
7.22 anyway

7.22 and 7.23 were pure security fixes, with no changes to the rendering
engine.
 
E

Eric Bohlman

(e-mail address removed) wrote in
These browser inconsistencies are starting to drive me crazy!

Here's an Opera 7.22 bug I just found:

When calculating an element's width using
document.defaultView.getComputedStyle(element,'').getPropertyValue('wid
th'), Opera includes the element's padding, which is wrong.

Mozilla does not include the padding.

Are you sure Opera isn't running in quirks mode? document.compatMode will
tell you.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top