Remove class attribute when comparing navigations.
Moves the logic of "sanitizing" navigation for comparison into an inline
function.
Closes #440.
Merge pull request #441 from kabel/bugfix-440

Remove class attribute when comparing navigations.