[webkit-dev] FW: Creating custom DOM events

Darin Adler darin at apple.com
Wed Apr 8 11:14:00 PDT 2009

WebKit’s API does not offer a way to add a custom HTML element or  
attribute. You can read the values of attributes but you can’t make  
setting an attribute have an effect. You can create a custom HTML  
element, but you can’t make it render any differently than any other  
unknown element would (renders the same as a <span>, more or less).

That having been said, if there's some point in time where you can  
walk the DOM and find the attributes, then you may be able to get the  
effect you want by reading the attribute value and then doing  
something based on it.

     -- Darin

More information about the webkit-dev mailing list