From fdcb78669e97cb57f7e7b7b237f15c8a5a8dd7c1 Mon Sep 17 00:00:00 2001 From: Domenic Denicola Date: Wed, 19 Apr 2017 17:15:14 -0400 Subject: [PATCH] Clarify the value comparison in input.value's setter This is a follow-up to #2437, which introduced the value comparison and its impact on selection. See https://github.com/w3c/web-platform-tests/pull/5147#issuecomment-294659847. --- source | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/source b/source index fe1a5d69817..d3fd64f860f 100644 --- a/source +++ b/source @@ -48656,10 +48656,11 @@ You cannot submit this form when the field is incorrect.
  • Invoke the value sanitization algorithm, if the element's type attribute's current state defines one.

  • -
  • If the new value is different from oldValue and the element has a text entry - cursor position, move the text entry cursor position to the end of the text control, - unselecting any selected text and resetting the - selection direction to "none".

  • +
  • If the element's value (after applying the + value sanitization algorithm) is different from oldValue, and the + element has a text entry cursor position, move the text entry cursor position to the end of the + text control, unselecting any selected text and resetting the selection direction to "none".