Toggle hyperlink active state via classes rather than custom XML attrs

Toggling a custom attribute on a custom XML element doesn't properly update the visual state on some browsers (e.g., WebKit on OSX). Using CSS classes instead seems to be better handled in these browsers,
correctly updating the mouse cursor icon on the fly.

Fixes issue #322.