Open
Bug 1622808
Opened 5 years ago
Updated 1 year ago
Number input localization should be more input-preserving.
Categories
(Core :: DOM: Core & HTML, enhancement)
Core
DOM: Core & HTML
Tracking
()
NEW
People
(Reporter: emilio, Unassigned)
References
(Blocks 1 open bug)
Details
Stuff like input.value = "00000.1"
doesn't preserve the leading zeros in an <input type=number lang=de>
, for example.
In other browsers, it does, see bug 1586870 for an example of the sort of thing where this could matter.
Reporter | ||
Updated•5 years ago
|
Flags: needinfo?(emilio)
Reporter | ||
Updated•5 years ago
|
Flags: needinfo?(emilio)
Comment 1•5 years ago
|
||
I can't reproduce the issue you've mentioned here with:
<input type="number" lang="de">
<script>
let input = document.querySelector("input");
input.value = "00000.1";
console.log(input.value); // 00000.1
</script>
I know there are issues around <input type="number">
, but it's unclear to me what exact kind of problem should be addressed in this ticket and if that kind of problem is indeed lang
related.
Flags: needinfo?(emilio)
Updated•5 years ago
|
Type: defect → enhancement
Reporter | ||
Comment 2•5 years ago
|
||
Yes, that won't be the case after bug 1622221 (and didn't use to be the case before 74).
Depends on: 1622221
Flags: needinfo?(emilio)
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•