Bug 250047

Summary: Remove the precision="float" attribute on <input type="range">
Product: WebKit Reporter: Ahmad Saleem <ahmad.saleem792>
Component: FormsAssignee: Ahmad Saleem <ahmad.saleem792>
Status: RESOLVED FIXED    
Severity: Normal CC: akeerthi, cdumez, karlcow, ntim, rniwa, webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: BrowserCompat, GoodFirstBug, InRadar
Version: Safari Technology Preview   
Hardware: Unspecified   
OS: Unspecified   

Description Ahmad Saleem 2023-01-03 14:57:55 PST
Hi Team,

While going through Blink's commit, I came across another one which was removed from Blink in 2014 and only Safari / WebKit support it right now. (NOTE - it was never standardised).

Test Case - http://software.hixie.ch/utilities/js/live-dom-viewer/?saved=3041

^ Chrome Canary 111 & Firefox Nightly 110 log - 1.0 while Safari 16.2 log 0.5

Blink Commit - https://chromium.googlesource.com/chromium/blink/+/6b76e9c0e649bf8d4b1c6c321af513e0e0c6c1af

WebKit Source - https://searchfox.org/wubkat/source/Source/WebCore/html/RangeInputType.cpp#125 & https://searchfox.org/wubkat/source/Source/WebCore/html/HTMLAttributeNames.in#367 & https://searchfox.org/wubkat/source/Source/WebCore/html/HTMLInputElement.cpp#795

Just wanted to raise so we can track and remove this non-standard.

Thanks!
Comment 1 Radar WebKit Bug Importer 2023-01-04 16:48:03 PST
<rdar://problem/103893662>
Comment 2 Tim Nguyen (:ntim) 2023-01-04 20:52:25 PST
Yeah, this seems reasonable to remove. I'd argue Safari is even producing incorrect behavior here given it's ignoring the step attribute.
Comment 3 Tim Nguyen (:ntim) 2023-01-07 13:53:58 PST
Pull Request: https://github.com/WebKit/WebKit/pull/8357
Comment 4 EWS 2023-01-07 17:11:41 PST
Committed 258625@main (06479587e171): <https://commits.webkit.org/258625@main>

Reviewed commits have been landed. Closing PR #8357 and removing active labels.