In this detailed explanation found on this website, it is discussed why jQuery UI uses CSS classes like .ui-state-active
that are applied through JavaScript, rather than utilizing existing CSS pseudo-classes like :active
. What is the reasoning behind this approach?