Use `Attributes` when binding values

Required a slight rewrite to `Attributes` so it deals with the
underlying doc instead of a `View`.