I don't know about DOM nodes but you can certainly put an nsIInputStream into an nsITransferable. (The windows clipboard code does this when you paste a native bitmap.)
Aside: The tab indexes on this blog's form objects seem to be all messed up, the order is [canvas] Name Email URL Comments [links] Yes/No Preview Post.
Aside to aside: Preview page tab order is fine.
(From Alex: I haven't messed with those settings on MovableType.)
Posted by Neil at March 29, 2007 1:20 AMnsISupportsInterfacePointer is a nsISupportsPrimitive that holds a nsISupports... So you indeed can hold a nsISupports :p
(.dataIID is one of the Components.interfaces.* for a JS consumer; you don't really need it thanks to xpconnect, but can't hurt.)
Posted by Mook at March 29, 2007 1:58 AMI'm not sure if my wrists have gotten used to the sharp edge, or what, but it doesn't bother be anymore (only took about 8 months!).
Is there not some more generic flavor for a clipboard, or is "application/x-vnd.verbosio.dom-node" it?
(From Alex: It's not for the clipboard, it's for DOM nodes in my app. If I knew of one, I'd use it.)
Posted by Shawn Wilsher at March 29, 2007 7:25 AM