Revert "Remove a:visited rule"

This reverts commit 3785e17b6f75ab1240ee2c22b74e27f02e56160a.