Implement Document.links