Add onerror handling for img/video loading.

The onerror argument isn't documented. Also document src first, then onload to match argument ordering.