Updating custom element callbacks to spec