Documentation Prolog Predicate Reference dom create/2

create/2

Create an HTML element or check its tag name.

Description

create( +atom, ?htmlObject )

create(Tag, HTMLObject) can be used both to create HTML elements and to check their tag. If HTMLObject is a variable, it will unify with an HTML object of the Tag kind. If HTMLObject is instantiated, create(Tag, HTMLObject) will be true if HTMLObject's tag name is Tag.

Implementation