cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Output Results of Website Not Showing

rempx
Making moves

Hello,

We have a website (remtopxonline.com) that provides an online calculator to convert REM to PX. It works fine on all browsers, but we recently noticed that it is not working on Firefox.

Our developer has been unable to find and fix this error.

2 REPLIES 2

siffemcon
Contributor

You could file a compatibility issue

- via the 'Report broken site' option in the FF menu

- at https://webcompat.com/issues/new

- on the Bugzilla Web Compatibility :: Site Reports component (https://bugzilla.mozilla.org/enter_bug.cgi?product=Web+Compatibility&component=Site+Reports)

harry37
Making moves

Hi,

What’s happening here is most likely a browser strictness issue with Mozilla Firefox, not that your calculator logic is fundamentally broken. Chrome tends to “forgive” loose JavaScript—like using raw input values without parsing or handling empty fields—while Firefox is much stricter. So if your code is directly using something like input.value in calculations, Firefox may treat it as NaN (not a number), which silently breaks the output and makes it look like nothing is working.

The fix is usually simple but important: make your JavaScript more explicit and defensive. Always convert input using parseFloat(), check for NaN, and ensure your script runs after the DOM is fully loaded. Also use the "input" event instead of "change" for consistent behavior. In short, don’t rely on the browser to guess what you mean—tell it clearly. Once you tighten that up, your calculator should behave the same across all browsers, including Firefox.

Regards