/* test binding for document - must be included */

webidlfile "eventtarget.idl";
webidlfile "node.idl";
webidlfile "document.idl";

operation getElementById %{
	dom_string *elementId_dom;
	dom_element *element;

	dom_string_create((unsigned char*)elementId, elementId_len, &elementId_dom);

	dom_document_get_element_by_id(private->node, elementId_dom, &element);

	jsretval = OBJECT_TO_JSVAL(jsapi_new_element(cx, JS_GetGlobalObject(cx), private->htmlc, element));
%}
