Maybe<String> getAttribute(ElementTree element, String name)
Arguments
element: The HTML elementname: The attribute name
Usage
Gets an attribute value from a HTML element, or nothing if the attribute is not set.
case getAttribute(el,"class") of {
nothing -> setClass(el,"recentchange");
| just(c) -> setClass(el,c+" recentchange");
}