<script src="//cdnjs.cloudflare.com/ajax/libs/modernizr/2.6.1/modernizr.min.js"></script>
<h1>
<code>:hover</code> in iOS.
</h1>
<div id="output"></div>
<div id="box-1" class="box">
<p>
This element has event listeners attached to it.
</p>
<p>
If an element has 1 or more DOM event listeners
attached to it <code>:hover</code> is applied to
the element, in iOS, when <em>any</em> of the events
being listened for are fired.
</p>
<p>
n.b. This sample uses
<a href="http://vanilla-js.com/">Vanilla JS</a>,
there is also
<a href="http://jsfiddle.net/wrumsby/sfasU/show/">an example</a>
that uses jQuery.
</p>
</div>
<div id="box-2" class="box">
<p>
This box does <em>not</em> have event listeners attached to it.
</p>
<p>
Having no event listeners doesn't trigger
<code>:hover</code> in iOS.
</p>
</div>