add nodeType
This commit is contained in:
parent
fa9046fc97
commit
ba867955a2
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue