Restrict to attribute instead of element.