Closed Bug 1729332 Opened 3 years ago Closed 2 years ago

number field with decimal (Windows) 91.0.2

Categories

(Firefox :: Untriaged, defect)

Firefox 92
Unspecified
Windows 10
defect

Tracking

()

RESOLVED INVALID

People

(Reporter: zorencen, Unassigned)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0

Steps to reproduce:

Check number field with decimals on windows.

Actual results:

Check image attached

Expected results:

On Linux it works

I'm sorry for my bad english :D

OS: Unspecified → Windows 10

Could you please provide some clearer steps on how to reproduce this issue?
Thanks.

Flags: needinfo?(zorencen)

(In reply to Hani Yacoub from comment #2)

Could you please provide some clearer steps on how to reproduce this issue?
Thanks.

Hi.

index.html

<html>
    <head>
         <!-- Latest compiled and minified CSS -->
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">

        <!-- jQuery library -->
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>

        <!-- Latest compiled JavaScript -->
        <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script> 
    </head>
    <body>
        <div class="card-content">
            <form class="new_cart" id="new_cart" action="congrats.html" accept-charset="UTF-8" method="get">
                                
                <div class="form-group">
                    <input value="37815.12605042017" class="form-control" type="number">
                </div>

                <div class="pull-right">
                    <input type="submit" value="Procesar pago" class="btn btn-info btn-lg btn-border" data-disable-with="Procesar pago">
                </div>
           
            </form>
        </div>
    </body>
</html>

congrats.html

<html>
    <head>
         <!-- Latest compiled and minified CSS -->
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">

        <!-- jQuery library -->
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>

        <!-- Latest compiled JavaScript -->
        <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script> 
    </head>
    <body>
        <h3>Congrats!!!</h3>
    </body>
</html>

Linux Mint: Firefox 92.0 Works
Windows 10: Firefox 92.0 Doesn't Works

Thanks!!!

Flags: needinfo?(zorencen)
Version: Firefox 91 → Firefox 92

The Bugbug bot thinks this bug should belong to the 'Core::Widget: Gtk' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → Widget: Gtk
Product: Firefox → Core

(In reply to Darkspirit from comment #5)

It this what you are looking for?
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/number#allowing_decimal_values
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/number#validation

Hi.

No, please check the code of the third comment. Why works on linux but the same code doesn't work on windows?

The attached code looks incomplete. Or more specifically, the code that's supposed to do the validation isn't even there.

I don't see anything actionable in here, or for that matter, any indication this is a bug on our end.

Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: