Hi,
Any idea why the following code throws an error:
var widgetTag = editor.document.createElement( 'av:widget' );
var widgetParam = editor.document.createElement( 'av:param' );
widgetTag.$.appendChild(widgetParam);
And the error: Could not convert JavaScript argument arg 0 [nsIDOMHTMLUnknownElement.appendChild]
widgetTag.$.appendChild(widgetParam);
Thanks.
Any idea why the following code throws an error:
var widgetTag = editor.document.createElement( 'av:widget' );
var widgetParam = editor.document.createElement( 'av:param' );
widgetTag.$.appendChild(widgetParam);
And the error: Could not convert JavaScript argument arg 0 [nsIDOMHTMLUnknownElement.appendChild]
widgetTag.$.appendChild(widgetParam);
Thanks.
Re: appendChild error
Try with widgetTag.$.appendChild(widgetParam.$); but remember that using custom namespaces can lead to strange behaviors depending on the browser that you are using and what you try to do.