[webkit-changes] [WebKit/WebKit] 064795: Remove the precision="float" attribute on <input t...

Ahmad Saleem noreply at github.com
Sat Jan 7 17:11:50 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 06479587e171c15e02394bc40840619744826116
      https://github.com/WebKit/WebKit/commit/06479587e171c15e02394bc40840619744826116
  Author: Ahmad Saleem <ahmad.saleem792+github at gmail.com>
  Date:   2023-01-07 (Sat, 07 Jan 2023)

  Changed paths:
    M Source/WebCore/html/HTMLAttributeNames.in
    M Source/WebCore/html/HTMLInputElement.cpp
    M Source/WebCore/html/RangeInputType.cpp

  Log Message:
  -----------
  Remove the precision="float" attribute on <input type="range">

Remove the precision="float" attribute on <input type="range">
https://bugs.webkit.org/show_bug.cgi?id=250047

Reviewed by Alexey Shvayka.

This patch is to align WebKit with Gecko / Firefox, Blink / Chromium by removing non-standard 'precision' attribute.

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

This was added in WebKit but it was non-standard and it was never added by any other browser.
Blink removed it in 2014 so only WebKit support it as of right now and it is broken feature
since it does not support 'step'  with precision="float".

* Source/WebCore/html/HTMLAttributeNames.in: Remove "precision"
* Source/WebCore/html/HTMLInputElement.cpp: Remove "precisionAttr"
* Source/WebCore/html/RangeInputType.cpp: Remove "precision='float'" support and FIXME

Canonical link: https://commits.webkit.org/258625@main




More information about the webkit-changes mailing list