We can port this function (and add more parameters ?) to easily call PartialUpdateElement in a worker
PartialUpdateElement