DOM::Node extension

Deschildre Nicolas nicolasdchd at ifrance.com
Sat Apr 12 14:36:19 BST 2003


hi!
I'm currently working on the kafkapart (the WYSIWYG editor) for Quanta
and i would like to submit you a change in khtml: In the kafkapart,
extra information is needed for each DOM::Node to handle the events, and
when an event is raised, the only way i have to get theses extra
informations is to look the quanta node(where the extra infos are
stored) one after one to see if it is the corresponding quanta node.
It is not so slow, but when the it is a 50000 nodes HTML file and the
extra infos need to be accessed up to 10 times per second, it might
become quite slow.
Normally i would have created a class which inherits from DOM::Node and
the new class would contains a pointer to the quanta node, but it isn't
possible in khtml.
So here is what i propose : a new public very basic class should be
created and a class pointer to DOM::NodeImpl which can be accessed by
the DOM::Node interface. Thus Quanta and any other application should be
able to derivate the new class to add their custom infos and plug it to
the DOM::Node.
Any comments?
I can do and commit this, but first, isn't there one simpler way to do
this that i've missed?
++
Nicolas

_____________________________________________________________________
Envie de discuter en "live" avec vos amis ? Télécharger MSN Messenger
http://www.ifrance.com/_reloc/m la 1ère messagerie instantanée de France



More information about the kfm-devel mailing list