add nodeType

This commit is contained in:
Vincent Sanders 2012-11-18 21:12:49 +00:00
parent fa9046fc97
commit ba867955a2
1 changed files with 11 additions and 0 deletions

View File

@ -4,6 +4,17 @@ webidlfile "dom.idl";
/* interface Node members */
getter nodeType %{
dom_exception exc;
dom_node_type node_type;
exc = dom_node_get_node_type(private->node, &node_type);
if (exc != DOM_NO_ERR) {
return JS_FALSE;
}
jsret = node_type;
%}
getter textContent %{
dom_exception exc;