To test, click test links and check if browser url is updated and the link shown as Current location below is updated accordingly. The three first should update to the current url, the last (div.removed) should not change. Also check that browser navigation "back" and "forward" works and updates urls correct.

Test links

Current location

1 - page.updated: https://manipulator.parentnode.dk/tests/u-history
2 - div.updated: https://manipulator.parentnode.dk/tests/u-history
3 - div.navigated: https://manipulator.parentnode.dk/tests/u-history
4 - div.removed: (should not update)