Closed Bug 825197 Opened 13 years ago Closed 3 months ago

When passing +/-Infinity to .valueAsNumber, TypeError should be thrown

Categories

(Core :: DOM: Forms, defect, P5)

defect

Tracking

()

RESOLVED FIXED
141 Branch
Tracking Status
firefox141 --- fixed

People

(Reporter: mounir, Assigned: sajidanwar, Mentored)

References

Details

(Keywords: good-first-bug, Whiteboard: [domcore-bugbash-triaged], [wptsync upstream])

Attachments

(1 file)

Bug 825009 implements throwing but not TypeError because that is only available with WebIDL. We should make sure to throw TypeError when bug 825196 is resolved.
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046 Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5. If you have questions, please contact :mdaly.
Priority: -- → P5
Component: DOM: Core & HTML → DOM: Forms
Severity: normal → S3
Mentor: avandolder
Keywords: good-first-bug
Whiteboard: [domcore-bugbash-triaged]

Hi all, I'd like to take this bug. I've got this mostly complete, just finalizing adding two new WPT files (one for valueAsNumber, and a very similar one for valueAsDate — these are the only two instances of TypeError in the HTML Input specification). I'll probably publish a patch tomorrow.

Also added two new Web Platform Tests to validate TypeError from valueAsNumber and valueAsDate, which are the
only two TypeError conditions in the HTML Input specification: https://html.spec.whatwg.org/multipage/input.html

Assignee: nobody → sajidanwar94
Status: NEW → ASSIGNED
Pushed by avandolder@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/7b80b1b2b71e https://hg.mozilla.org/integration/autoland/rev/19d18586c082 Throw TypeError when providing infinite number to HTMLInputElement.valueAsNumber. r=avandolder
Status: ASSIGNED → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 141 Branch
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/53100 for changes under testing/web-platform/tests
Whiteboard: [domcore-bugbash-triaged] → [domcore-bugbash-triaged], [wptsync upstream]
Upstream PR merged by moz-wptsync-bot

Thank you Sajid Anwar for the great work here!

QA Whiteboard: [qa-triage-done-c142/b141]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: