<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 - Click events nested within click event handlers do not trigger the first time"
   href="https://bugs.webkit.org/show_bug.cgi?id=146033">146033</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Click events nested within click event handlers do not trigger the first time
          </td>
        </tr>

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

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

        <tr>
          <th>Version</th>
          <td>525.x (Safari 3.2)
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>iOS
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>iOS 8.2
          </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 Events
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>cwhenderson20&#64;gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>In mobile Safari, click events within click handlers do not trigger on the first click.

Example code:
-------------
document.querySelector('.link-one').addEventListener('click', function () {
    document.querySelector('.link-two').click();
});

In Chrome (mobile and desktop) as well as in desktop Safari (8.0.6), clicking a link with a class of &quot;link-one&quot; will then trigger the programmatic click of a link with class &quot;link-two&quot;. Mobile Safari, however, does not trigger the click until the &quot;.link-one&quot; element is clicked a second time.</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>