wrap element or domElement

You can either pass a element or a domElement  for wrapping