Comparison of Chrome and Firefox

When I first completed a project (Water_Vapor.html) in Chrome, I thought I would try it in Firefox. What a difference.

This page is just for a few screen shots - details and fixes are provided elsewhere.


These are images of the same application in different browsers on systems with different screen resolutions. The Firefox 24 screen shot actually is slightly smaller than the Chrome.

The main differences are

As a result, I now use readonly instead of disabled and provide a style sheet to control all the display properties that are different by default.. The widths of the Windows 10 images were scaled to fit.


Table in Table Alignment

The following markup centers one table inside the muti-column field of another in Chrome, Firefox, and IE8 but NOT in IE 11 or Edge 25 in Windows 10!! Example to try in various browsers.

These are screen shots - showing the difference!

There is more (related) nonsense with respect to table tags - according to w3schools If true - then almost every page I have written will no longer format correctly!!!

This is intentional vandalism of a large part of the web and theft of intellectual property by those who would be king!

In the example above, without the inner table, the fieldset expands to the width of the table row. Based on the standards (as I understand them), a simple <th> should have centered everything in that field. However, with all the browsers I have tested, IE 8 on Windows XP is the only one to correctly center the included table. Adding align=center to the <th> tag caused the included table to be centered in all the XP browsers and Chrome and Firefox on Windows 10.

The "fix" is to use the center tag (instead of the center attribute/property).

In IE 8 with Windows XP, the word Temperature in the fieldset/legend is blue - in all other tested browsers, it is black.


Blank Line after Heading Tags

In all the browsers I have tested - except IE 11 or Edge 25 in Windows 10 - there is always a blank line after the heading I use to separate sections of a page - like this one.

Testing indicates that this is caused by the center tag I use to center the headings. I have been using the same template for over 15 years and it has worked in every browser ... until now!!!

Note: This is an html rendering problem and NOT a javascript problem.

This is yet another case where Microsoft has vandalized my pages by changing their implementation.


Integer

Javascript has 2 commands to convert a strings to numbers - Number and parseInt.

The first problem is that those commands return different values for an empty string - 0 vs NaN.

The other problem is that Firefox version 24.0 does not support number fields. As a result, when an attempt to assign NaN to a number field

The buttons below allow testing the current browser. Both integer conversions round the number.

When a user is entering a value, the actual code I use checks for a blank field, leaves it that way, and does not compute any values that depend on that number. However, if one field is blank, and the user changes the value of another field, the blank field is treated as either a default value, as a zero, or as NaN, depending on how I want to handle it for that application.


IE8

IE8 does not support getElementsByClassName, as a result I had to write a routine to perform that function. The following works in Chrome - but fails in IE8 because it does not support the node.classList property. I could not find a function to return all the nodes in a page. Therefore, the main function is called recursively, as required.

Note that document.querySelectorAll also does not work in IE 8.

IE8 does not support

When the mouse is over a select component, Chrome works with this but IE8 requires target.

I can not find a way to disable the default behavior for the Shift/Alt/Ctrl keys.

I can repurpose all of these in Chrome.

Found it

This works for Shift and Ctrl - I need to try alt again.

These are show stoppers - I can work around them one at a time - but WHY???

My apps will simply not work in IE8!!!!


Author: Robert Clemenzi
URL: http:// mc-computing.com / Languages / Javascript / Chrome_Firefox_Compare.html