<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - |execCommand()| shouldn't fire 'beforeinput'"
   href="https://bugs.webkit.org/show_bug.cgi?id=165197">165197</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>|execCommand()| shouldn't fire 'beforeinput'
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>WebKit
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>Safari Technology Preview
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>Normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P2
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>HTML Editing
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>webkit-unassigned&#64;lists.webkit.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>chongz&#64;chromium.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>enrica&#64;apple.com, rniwa&#64;webkit.org, wenson_hsieh&#64;apple.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>According to <a href="https://github.com/w3c/editing/issues/43">https://github.com/w3c/editing/issues/43</a> 'beforeinput' should only be fired for user actions. Firing it for |execCommand()| might cause some nested events.

Or do we want to change the spec?

Reproduce Steps [Release 18 (Safari 10.1, WebKit 12603.1.12)]:
1. Go to <a href="https://jsbin.com/tevepaw">https://jsbin.com/tevepaw</a>
2. Focus the text
3. Wait for 2 seconds
4. Notice that both 'beforeinput'/'input' will be logged</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>