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

"rvj" <[email protected]> Tue, 25 May 2010 15:48:08 +0100
Newsgroups gmane.comp.mozilla.devel.dom
Message-ID <[email protected]>
> Does it work if you append the node.wrappedJSObject?

nope. If I try

       target.appendChild(node.wrappedJSObject)

then  I get x80004003 (NS_ERROR_INVALID_POINTER)

PS I assume that the html requires no special markup?


************************************************
<html>
<body  style="width:100%;height:100%;text-align:center;margin:0;padding;0" >
<table  style="width:100%;background:cyan;height:100%;" >
<th style="height:40px">Source Table</th>
<tr id="row1" draggable="true" style="height:20px;background:yellow"><td 
id="1a" >1a</td><td id="1b" >1b</td></tr>
<tr id="row2" draggable="true" style="height:20px;background:pink"><td 
id="2a" >2a</td><td id="2b" >2b</td></tr>
<tr id="row3" draggable="true" style="background:purple"><td id="3a" 
 ></td><td id="3b" ></td></tr>
</table>
</body>
</html>

*********************************************
<html>
<body style="width:100%;height:100%;text-align:center;margin:0;padding;0" >
<table id="tablenode" style="width:100%;background:cyan;height:100%;" >
<th  style="height:40px">Target Table</th>
<tr id="row4" draggable="true" style="height:20px;background:gold"><td 
id="4a" >4a</td><td id="4b" >4b</td></tr>
<tr id="row5" draggable="true" style="height:20px;background:lime"><td 
id="5a" >5a</td><td id="5b" >5b</td></tr>
<tr id="row5" draggable="true" style="background:blue"><td id="6a" ></td><td 
id="6b" ></td></tr>
</table>
</body>
</html>

********************************************

</html>
"Boris Zbarsky" <[email protected]> wrote in message 
news:[email protected]...
> On 5/25/10 3:10 AM, rvj wrote:
>>> Does appending the security wrapper not work?  It should...
>>
>> nope I get
>>
>>    // Execption ..." Could not convert Javascript argument 0
>>    // [nsIDOMHTMLTableElement.appendChild]" nsresult: "0x80570009
>>    // NS_ERROR_XPC_BAD_CONVERT_JS)"
>
> Does it work if you append the node.wrappedJSObject?
>
> -Boris