Requirement is not mentioned in the API dox, needs to be added.
Possibly also should be made clear both by argument name (node -> element), requiring it to be of type !Element, and perhaps even the method name being setPositionBeforeElement.
Might prevent wrong usages and help when reading code calling this method.