diff options
author | Vincent Sanders <vince@netsurf-browser.org> | 2012-11-03 21:37:06 +0000 |
---|---|---|
committer | Vincent Sanders <vince@netsurf-browser.org> | 2012-11-03 21:37:06 +0000 |
commit | 3f1b68384562fe294a1a263214a3fd26ea869bc9 (patch) | |
tree | 21be758e3205fb8c13144c39f3790e380a9e8f5f /javascript/jsapi/window.bnd | |
parent | 6648ba39ade5ed8c1a5ceccab82eed567478c950 (diff) | |
download | netsurf-3f1b68384562fe294a1a263214a3fd26ea869bc9.tar.gz netsurf-3f1b68384562fe294a1a263214a3fd26ea869bc9.tar.bz2 |
implement dom-getElementsByTagName and nodelist and htmlcollection
Diffstat (limited to 'javascript/jsapi/window.bnd')
-rw-r--r-- | javascript/jsapi/window.bnd | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/javascript/jsapi/window.bnd b/javascript/jsapi/window.bnd index da6400332..6f5e1af47 100644 --- a/javascript/jsapi/window.bnd +++ b/javascript/jsapi/window.bnd @@ -103,6 +103,16 @@ api init %{ return NULL; } + user_proto = jsapi_InitClass_HTMLCollection(cx, prototype); + if (user_proto == NULL) { + return NULL; + } + + user_proto = jsapi_InitClass_NodeList(cx, prototype); + if (user_proto == NULL) { + return NULL; + } + %} api new %{ |