Let's say I have the following HTML:
<div id="mydiv">Hello</div>
<style>
#mydiv {
background-color: yellow;
}
#mydiv:hover {
background-color: red;
}
</style>
Using JavaScript, how would I determine whether #mydiv has the "hover" pseudo-class rule applied to it?
Ideally, it would be a function like the following:
function HasHoverPseudoClass(element){
//if element has the "hover" pseudo-class then
//return true
//else
//return false
}