HTMLDocument.getAttribute3kaya
Gets an attribute value from a html element
Usage
Maybe<String> getAttribute( ElementTree element, String name )
Arguments
element The HTML element
name The attribute name
Overview
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");
}
Releases
4 releases since Debian 5.0 (Lenny); the text changed 3 times.