<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>139473</bug_id>
          
          <creation_ts>2014-12-10 01:36:58 -0800</creation_ts>
          <short_desc>HTMLInputElement&apos;s value change does not trigger spellchecker</short_desc>
          <delta_ts>2022-02-21 10:25:48 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>HTML Editing</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=236937</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Grzegorz Czajkowski">g.czajkowski</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>darin</cc>
    
    <cc>rniwa</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1054087</commentid>
    <comment_count>0</comment_count>
      <attachid>243001</attachid>
    <who name="Grzegorz Czajkowski">g.czajkowski</who>
    <bug_when>2014-12-10 01:36:58 -0800</bug_when>
    <thetext>Created attachment 243001
test case

Input element&apos;s value change (from script) does not invoke spell checker (unless user starts typing manually).

FAIL:
document.getElementById(&quot;spellTest&quot;).value = &quot;TextThatShouldBeMarkedAsMisspelled &quot;;

PASS:
document.execCommand(&quot;InsertText&quot;, false, &quot;TextThatShouldBeMarkedAsMisspelled &quot;);

It seems that it worked in the past as EFL used to simulate typing using &quot;inputElement.value = &quot;misspelledString &quot; in API test which started failing (bug 132982). Unfortunately, since limited history of API test failures finding a revision which caused it is unlikely to happen.

FYI, Safari as well as EFL&apos;s MiniBrowser do not trigger spellchecking on input.value changes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1054090</commentid>
    <comment_count>1</comment_count>
    <who name="Grzegorz Czajkowski">g.czajkowski</who>
    <bug_when>2014-12-10 01:47:03 -0800</bug_when>
    <thetext>I am wondering whether it is something that we want to fix or it has been done by purpose?
It looks like we have inconsistency as execCommand(InsertText, ...) does spell check but input.value call does not.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1054170</commentid>
    <comment_count>2</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2014-12-10 09:08:32 -0800</bug_when>
    <thetext>Yes, this was originally done on purpose. The idea is that setting a value from script is not the same thing as typing.

Whether this should be changed or not is a judgement call that requires more information. Do websites depend on one behavior or the other? Is there a standard for this? Do other web browsers consistently do this in a way that is different from what WebKit-based browsers do it?</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>243001</attachid>
            <date>2014-12-10 01:36:58 -0800</date>
            <delta_ts>2014-12-10 01:36:58 -0800</delta_ts>
            <desc>test case</desc>
            <filename>input_type_spellcheck.html</filename>
            <type>text/html</type>
            <size>415</size>
            <attacher name="Grzegorz Czajkowski">g.czajkowski</attacher>
            
              <data encoding="base64">PEhUTUw+CjxCT0RZIG9ubG9hZD0iaW5zZXJ0VGV4dCgpIj4KQmVsb3cgdGV4dCBzaG91bGQgYmUg
bWFya2VkIGFzIG1pc3NwZWxsZWQuPGJyPgo8SU5QVVQgdHlwZT0idGV4dCIgaWQ9InNwZWxsVGVz
dCI+CjxzY3JpcHQ+CmZ1bmN0aW9uIGluc2VydFRleHQoKSB7CiAgICBkb2N1bWVudC5nZXRFbGVt
ZW50QnlJZCgic3BlbGxUZXN0IikuZm9jdXMoKTsKICAgIGRvY3VtZW50LmdldEVsZW1lbnRCeUlk
KCJzcGVsbFRlc3QiKS52YWx1ZSA9ICJ2YWx1ZWNoYW5nZXJlcyAiOwogICAgCiAgICAvLyBIb3dl
dmVyLCBleGVjQ29tbWFuZCBkb2VzIHNwZWxsIGNoZWNrCiAgICAvL2RvY3VtZW50LmV4ZWNDb21t
YW5kKCJJbnNlcnRUZXh0IiwgZmFsc2UsICJleGVjY29tbmFuZHJlcyAiKTsKfQo8L3NjcmlwdD4K
PC9CT0RZPgo8L0hUTUw+Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>