Documentation Prolog Predicate Reference dom has_class/2

has_class/2

Check if an HTML element has a certain class.

Description

has_class( +htmlObject, ?atom )

has_class(HTMLObject, Class) is true if and only if HTMLElement contains Class in its class attribute. If Class is not instantiated, has_class/3 will unify with all the classes contained in the class attribute.

Implementation