netsurf/javascript/jsapi/dom.bnd
2012-11-04 16:37:51 +00:00

24 lines
424 B
Plaintext

/* DOM bindings entries */
webidlfile "dom.idl";
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);
}
%}