I agree that with…with is awkward, but I would prefer:
with a div element containing a data-controller attribute naming the controller.
I agree that with…with is awkward, but I would prefer:
with a div element containing a data-controller attribute naming the controller.