Uses id on element if exists.

This functionality can be overridden by providing a custom anchorName() filter.