[Greasemonkey] xpcwrapper

Edward Kawas edward.kawas at gmail.com
Fri Aug 11 09:52:05 EDT 2006


Thanks.

It turns out that I don't need to worry about this.

Fyi, I was doing the following:

	Var children = element.childNodes;

Children[i].someMethod() but I was failing because the object was wrapped. 

Then I did 
	var child = children[i];
	child.someMethod()
And it worked ...

Thanks for your help!

Eddie

> -----Original Message-----
> From: greasemonkey-bounces at mozdev.org 
> [mailto:greasemonkey-bounces at mozdev.org] On Behalf Of 
> arantius at gmail.com
> Sent: Friday, August 11, 2006 8:46 AM
> To: greasemonkey at mozdev.org
> Subject: Re: [Greasemonkey] xpcwrapper
> 
> On 8/11/2006 10:47 AM, Edward Kawas wrote:
> > How does one access the SpanElement in
> > 	[object XPCNativeWrapper [object HTMLSpanElement]]
> 
> For any XPCNativeWrapper object:
> 
> object.wrappedJSObject
> 
> But as the documentation suggests, this should be done only 
> when "unsafe access to a property is required for some 
> reason" which is usually not the case.
> http://developer.mozilla.org/en/docs/XPCNativeWrapper#Accessin
> g_unsafe_properties
> 
> _______________________________________________
> Greasemonkey mailing list
> Greasemonkey at mozdev.org
> http://mozdev.org/mailman/listinfo/greasemonkey



More information about the Greasemonkey mailing list