>>> +     _dom_dispatch_characterdata_modified_event(doc, c, c->value, data, 
>>> &success);
>>> +
>>
>> Do we care if the dispatch failed? If so, how should it be handled?
>>
>
> I have added some error handling code in element.c. But, I think we
> don't need to do more. There are all three exceptions can be
> generated:
> UNSPECIFIED_EVENT_TYPE_ERR
> DISPATCH_REQUEST_ERR
> NOT_SUPPORTED_ERR
>
> For internal generated events, none of these three exceptions can be
> raised. So, i think we can assume the _dispatch_ function all return
> DOM_NO_ERR.

Oh, the _dispatch_ may also return a DOM_NO_MEM_ERR, I should still
deal with the returned exception carefully. :)

Regards!
Bo

Reply via email to