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)

enhancement

Tracking

()

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.

Flags: needinfo?(emilio)
Flags: needinfo?(emilio)

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)
Type: defect → enhancement

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)
Severity: normal → S3
Depends on: 1808923
You need to log in before you can comment on or make changes to this bug.