Re: XPCNativeWrapper and getData (application/x-moz-node)

Boris Zbarsky <[email protected]> Mon, 24 May 2010 11:50:37 -0400
Newsgroups gmane.comp.mozilla.devel.dom
Message-ID <[email protected]>
On 5/24/10 11:43 AM, rvj wrote:
> So ondrop  node reports that an HTML table row has been passed but not as we
> know it!

Right, you're seeing the security wrapper for it.

> What then is the syntax to extract the html node in a XPCNativeWrapper so
> that it can be appended after  the target element?

Does appending the security wrapper not work?  It should...

> alert("node"+node)                 // [object XPCNativeWrapper [ object
> HTMLTableRowElement]]

That seems correct.

> alert(node.tagName)            //  undefined

This, however does not.

-Boris