The energy lost on charging a capacitor can be easily found from the change in energy of the components of the circuit and the energy supplied by the battery.
On charging a capacitor I know that the energy loss appears as heat in the internal resistance of the battery and the wires.
But what if I take (Purely theoretically) a battery with 0 internal resistance and wires with 0 resistance?
I can't see why the capacitor won't be charged, so from the calculation there must be energy dissipated in the circuit.
So in that case, where is the heat dissipated?
Or is this ideal case faulty?