[Bug 27432] The current [WHATWG] spec text for <input type=number> stepping can cause stepping in the opposite direction to the one requested

https://www.w3.org/Bugs/Public/show_bug.cgi?id=27432

Philippe Le Hegaret <plh@w3.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |plh@w3.org

--- Comment #2 from Philippe Le Hegaret <plh@w3.org> ---
https://github.com/w3c/spork/pull/15

This does two things:

1. modify step 5 to add a variable "current value"

[[
5. If applying the algorithm to convert a string to a number to the string
given by the element's value does not result in an error, then let value be the
result of that algorithm. Otherwise, let value be zero. Let current value be
the same as value.
]]

2. Insert two steps before step 9 (which becomes step 11 below)

[[
9. If the method invoked was the stepDown() method and value is greater than
current value, abort these steps.

10. If the method invoked was the stepUp() method and value is less than
current value, abort these steps.

11. Let value as string be the result of running [...]
]]

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Wednesday, 8 July 2015 19:17:37 UTC