Currently NS_NewTextNode() gives you back a nsIContent pointer which means that everyone that wants to set some text data in the new text node must QI it to nsITextContent or nsIDOMTextNode. This is silly, patch coming up.
Created attachment 107075 [details] [diff] [review] Change NS_NewTextNode() to "return" nsITextContent
Comment on attachment 107076 [details] [diff] [review] diff -w of the above Note that this attachment is diff -w, look at the first attachment for the real change.
15 years ago