Inserts the object
$element
at the current position relative to the root
object
$h
and updates the position (indicated by
pos
)
to the inserted element.
Returns the new
$element
.
The
implicit
argument is a boolean indicating whether the element
is an implicit tag (true) or the original HTML (false).