To me it seems wrong that the internal DOM would have to know about
the class naming scheme in a particular binding. A better approach
might be just to grab the tag name and swizzle it according to the
binding's class naming convention. Something like this:
HTMLElement* htmlElt = static_cast<HTMLElement*>(impl);
String tagName = htmlElt->tagName();
String className = "DOMHTML" + tagName + "Element";
That wouldn't be exactly right because of capitalization, but it
illustrates the general idea.
Geoff
_______________________________________________
webkit-dev mailing list
[email protected]
http://www.opendarwin.org/mailman/listinfo/webkit-dev