Ensure the DOM attribute is updated when a resource name changes.

Progress on #25.