summaryrefslogtreecommitdiff
path: root/javascript/jsapi/dom.bnd
blob: bf3b44ea3e1960ddc408cb68bc11eed094eff443 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* DOM bindings entries */

webidlfile "dom.idl";

/* interface Node members */


getter textContent %{
        dom_exception exc;
        dom_string *content;

        exc = dom_node_get_text_content(private->node, &content);
        if (exc != DOM_NO_ERR) {
		return JS_FALSE;
	}

	if (content != NULL) {
                jsret = JS_NewStringCopyN(cx, dom_string_data(content), dom_string_length(content));
		dom_string_unref(content);

        }
%}



operation appendChild %{
/* void * JS_GetInstancePrivate(JSContext *cx, JSObject *obj, JSClass *clasp, jsval *argv); */
%}