473,513 Members | 2,456 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Quirk in Firefox DHTML style computation?

I've run into a problem with style computation under Firefox
(Gecko/20061010 Firefox 2.0) which I can't understand. Any help would
be appreciated.

My short test case ( http://www.mib.org/~agt/WIDGETS/test.html )
inserts a new table row each time the submit button is clicked. (I'm
working on Yet Another To-Do List, in case you're wondering.)

At first, the new table rows don't pick up the correct style: for
example, DOM inspector tells me the third cell in each row has
width=0px.

But if I tell Firefox to "View/Page Style/No Style", followed by
"View/Page Style/Basic Style", the table row displays properly (and the
third cell has width=480px as intended.)

Am I missing something here?

-- Adam

Dec 6 '06 #1
1 1910
VK

at*******@gmail.com wrote:
I've run into a problem with style computation under Firefox
(Gecko/20061010 Firefox 2.0) which I can't understand. Any help would
be appreciated.

My short test case ( http://www.mib.org/~agt/WIDGETS/test.html )
inserts a new table row each time the submit button is clicked. (I'm
working on Yet Another To-Do List, in case you're wondering.)

At first, the new table rows don't pick up the correct style: for
example, DOM inspector tells me the third cell in each row has
width=0px.

But if I tell Firefox to "View/Page Style/No Style", followed by
"View/Page Style/Basic Style", the table row displays properly (and the
third cell has width=480px as intended.)

Am I missing something here?
AFAICT that's another outcome of
<https://bugzilla.mozilla.org/show_bug.cgi?id=83830>
I filed that bug for bindings - but apparently it "works" for any
cascading style. At least the same "fix" works for it: by replacing DT
element on itself forces it to finally peak up implicit styles, I just
tested it:
parent.replaceChild(oTD, oTD);

If anyone comes with any better fix than replaceChild(oTD, oTD) then
*please* post it at <comp.lang.javascript>

At the time being I would suggest to script TD style directly instead
of CSS cascaded inheritance:
oTD.style.width = '400px';
// etc

Dec 6 '06 #2

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

Similar topics

5
2314
by: Roland Bengtsson | last post by:
Is it possible to determine if the www-reader is in quirk mode and then do a printout on the status line at the bottom?
10
5352
by: andreister | last post by:
He there! I've discovered that the ================================================= document.links('link_id_here').href = "something"; ================================================= is...
87
9495
by: expertware | last post by:
Dear friends, My name is Pamela, I know little about CSS, but I would like to ask a question I have an image on a web page within a css layer: <DIV ID=MyLayer STYLE = "position:...
14
2298
by: expertware | last post by:
Ok! to avoid confusion I will start a new argument. Thanks!! FIREFOX 1.0.7 AND IE6 viewed through DATATIME: a summary REPORT ===============================================================...
5
3495
by: Martin Chen | last post by:
I have a frame set (as per MS FrontPage 2000). It has a contents and a main frame. The contents frame has a menu bar written with with javascript (in the context of a table). In IE6.1 everything...
4
11278
by: uwe.braunholz | last post by:
Hello, I want to set the text of a marqee dynamical. So I created the following code: ****snip**** <style> #noticeMarquee { background-color:#ff00ff; color:#ffffff;
4
2640
by: the other john | last post by:
I came across a third party script I want to learn how to configure as well as learn more dhtml in the doing. I'm not much of a JS guy yet but I'm working on it. This script works fine in IE6...
2
3769
by: jpk872 | last post by:
i created some javascript DHTML that highlights which menu selection the mouse is currently at, but it won't work on Firefox. Any idea? The source is old, so probably things have changed. ...
12
1249
by: Jens | last post by:
Hi everyone, I'm trying to build a simple dropdown menu for a website and i need to need a way to retrieve the top and left style attributes of an object. However it seems style attributes like...
0
7160
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7384
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7099
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7525
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5685
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3233
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3222
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
799
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
456
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.