Our code base is littered with calls to element.value().attr("attribute") and this little method would make this much more readable by shorting it to element.attr("attribute").
Generally, I would also consider impl Deref<Target=Element> instead of impl Deref<Target=NodeRef> but that would be incompatible and more intrusive.
ElementRef::attr
forwarding methodOur code base is littered with calls to
element.value().attr("attribute")
and this little method would make this much more readable by shorting it toelement.attr("attribute")
.Generally, I would also consider
impl Deref<Target=Element>
instead ofimpl Deref<Target=NodeRef>
but that would be incompatible and more intrusive.