<?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>9553</bug_id>
          
          <creation_ts>2006-06-23 01:12:27 -0700</creation_ts>
          <short_desc>Pasting in a text input doesn&apos;t trigger onKeyUp, onPaste</short_desc>
          <delta_ts>2022-07-19 11:32:26 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>DOM</component>
          <version>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          
          <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="Duncan Wilcox">duncan</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>ap</cc>
    
    <cc>bfulgham</cc>
    
    <cc>ian</cc>
    
    <cc>oliver</cc>
    
    <cc>rniwa</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>46770</commentid>
    <comment_count>0</comment_count>
    <who name="Duncan Wilcox">duncan</who>
    <bug_when>2006-06-23 01:12:27 -0700</bug_when>
    <thetext>Given a fragment like this: &lt;input type=&quot;text&quot; onkeyup=&quot;alert(&apos;keyup&apos;); return true;&quot;&gt;

Safari never triggers the alert when pasting; firefox 1.5.0.4 (tested on a mac) and ie6 (tested on a windows server 2003) trigger the alert only when pasting via cmd-v/ctrl-v keyboard accelerator, but not when pasting from the edit menu.

Additionally, both firefox and ie6 will trigger the alert when pasting either from keyboard or menu in the following: &lt;input type=&quot;text&quot; onpaste=&quot;alert(&apos;keyup&apos;); return true;&quot;&gt;. Safari never appears to trigger the onpaste alert.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1885136</commentid>
    <comment_count>1</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-07-19 11:10:37 -0700</bug_when>
    <thetext>I changed the test case from Description into following fiddle:

Link - https://jsfiddle.net/stybxefj/show

Following is behavior across all browsers:

*** Safari 15.5 on macOS 12.4 ***

CMD+C / CMD+V - triggers an alert &apos;keyup&apos;

Right click and &quot;paste&quot; - nothing (till I press Enter then it shows &apos;keyup&apos;)

From Edit &quot;Paste&quot; and still nothing

*** Firefox Nightly 104 ***

Matches with Safari

*** Chrome Canary 105 ***

Matches with Safari

__________

I am not clear on web-spec or expected results but from description, I was able to understand only these two cases and they are same across all browsers and I think other browsers aligned with Webkit behavior. I think this can be closed as &quot;RESOLVED INVALID&quot; or &quot;RESOLVED WONTFIX&quot; or if I am wrong then can be tested correctly. Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1885145</commentid>
    <comment_count>2</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2022-07-19 11:32:26 -0700</bug_when>
    <thetext>Thanks for testing.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>