473,320 Members | 2,088 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Opera bug with calculating element width

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.

Jul 20 '05 #1
6 2062
de*******@no.spam.com wrote in
news:3f****************@news.md.comcast.giganews.c om:
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.

--
Kayode Okeyode
http://www.kayodeok.co.uk/weblog/
http://www.kayodeok.btinternet.co.uk.../webdesign.htm
Jul 20 '05 #2
On 14 Dec 2003 11:06:13 GMT, kayodeok <ne*********@btopenworld.com> wrote:
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. :-(

Jul 20 '05 #3
kayodeok wrote:
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.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me - http://www.goddamn.co.uk/tobyink/?page=132

Jul 20 '05 #4
de*******@no.spam.com wrote in
news:3f****************@news.md.comcast.giganews.c om:
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.
Jul 20 '05 #5


Eric Bohlman wrote:
de*******@no.spam.com wrote in
news:3f****************@news.md.comcast.giganews.c om:

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.


I have tested with 7.20, see
http://home.arcor.de/martin.honnen/o...leOfWidth.html
and I think delerious is right, it is a bug in Opera.
--

Martin Honnen
http://JavaScript.FAQTs.com/

Jul 20 '05 #6
On 14 Dec 2003 15:16:04 GMT, Eric Bohlman <eb******@earthlink.net> wrote:
Are you sure Opera isn't running in quirks mode? document.compatMode will
tell you.


My doctype is:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

Jul 20 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: eternalD3 | last post by:
Hi, I have a problem to get this working on Opera 7.x+. This does not need to work on older Opera browsers There are problems on rendering the sub-level navigation. It aligns right on Firefox...
10
by: patrick j | last post by:
Hi I'm wondering why my horizontal navigation lists don't align at the left in Opera as they do in IE6, IE7, Safari, Firefox and iCab? A URL with both of the horizontal lists is here: ...
25
Atli
by: Atli | last post by:
Hi. I've created this little window that is shown when I roll the mouse over elements I specify in my html code. Like a nubbin I test this in IE while I'me writing it, thinking it can hardly be...
0
by: atarumorooka | last post by:
Hello, yes..it must be hard to try and help someone else coding but today is a full week of sadness and stress for IE CSS rendering and I need your help. Here you have a link that looks nice with...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.