
5 Nov
2005
5 Nov
'05
8:49 p.m.
Janusz Piwowarski wrote:
while 'insert_comment("foo")' will add (and return) the comment <!--foo-->
node.insert( comment( "foo" ));
That assumes you can create a freestanding 'element' and 'comment' object, which I deliberately try to avoid, as it would necessitate the API to become more complex.
I disagree - you have classes for different node types, but you don't use it for creating their instances.
Huh ? What is 'comment("foo")' then supposed to be, if not a constructor call ? Regards, Stefan