Creates an element based on the given definition.
document to create element
definition of element to create.
Creates an element based on the given definition.