From d704c529af1167f2bada56848f8e78aabcbc9be7 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 3a8725ba580..09f43cabe48 100644 --- a/source +++ b/source @@ -48658,10 +48658,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".