Issue #15 resolved

getAttribute in nsIDOMElement is being marshaled wrong in Generated files.

hindlemail
created an issue

DOMString getAttribute(in DOMString name); in: [scriptable, uuid(a6cf9078-15b3-11d2-932e-00805f8add32)] interface nsIDOMElement : nsIDOMNode

has a return type of DOMString and so should be marshaled as:

{{{

!c

MethodCodeType=MethodCodeType.Runtime)] void GetAttribute([MarshalAs(UnmanagedType.LPStruct)] nsAString, [MarshalAs(UnmanagedType.LPStruct)] nsAString aAttribute); }}}

but instead if being marshaled as: {{{

!c

[return: MarshalAs(UnmanagedType.LPStruct)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)] nsAString GetAttribute([MarshalAs(UnmanagedType.LPStruct)] nsAString name);

}}}

Comments (1)

  1. Log in to comment