[webkit-dev] Creating custom DOM events

Alexey Proskuryakov ap at webkit.org
Tue Apr 7 23:59:07 PDT 2009


On 08.04.2009, at 3:10, Ross Lillie wrote:

>    <element onMyCustomEvent=function() {}>

> The public interfaces in WebKit don't appear to provide the  
> functionality I
> need.  The private interfaces in WebCore appear that they might.  Am  
> I on
> the right track?


WebCore internal methods are subject to frequent changes, so calling  
them directly is not recommended.

You can avoid the need to do add the custom attribute by not using it,  
and registering the event handler via element.addEventListener() in  
your JavaScript code.

- WBR, Alexey Proskuryakov




More information about the webkit-dev mailing list