diff options
author | Vincent Sanders <vince@netsurf-browser.org> | 2012-11-10 11:20:31 +0000 |
---|---|---|
committer | Vincent Sanders <vince@netsurf-browser.org> | 2012-11-10 11:44:38 +0000 |
commit | a79e0988174c51b44e9e549d8026e38ad4839e1a (patch) | |
tree | 092d1718e8e66fd32a0fc2af9d5205408da10128 /javascript | |
parent | 617d655c7bbcccd5168514c9d29e5b329eec63d4 (diff) | |
download | netsurf-a79e0988174c51b44e9e549d8026e38ad4839e1a.tar.gz netsurf-a79e0988174c51b44e9e549d8026e38ad4839e1a.tar.bz2 |
remove redundant domutils and put functionality in existing utils/libdom
Diffstat (limited to 'javascript')
-rw-r--r-- | javascript/jsapi/htmldocument.bnd | 6 | ||||
-rw-r--r-- | javascript/jsapi/htmlelement.bnd | 14 |
2 files changed, 16 insertions, 4 deletions
diff --git a/javascript/jsapi/htmldocument.bnd b/javascript/jsapi/htmldocument.bnd index a45489245..80a30bb4e 100644 --- a/javascript/jsapi/htmldocument.bnd +++ b/javascript/jsapi/htmldocument.bnd @@ -13,7 +13,7 @@ preamble %{ #include "utils/config.h" #include "utils/log.h" #include "utils/corestrings.h" -#include "utils/domutils.h" +#include "utils/libdom.h" #include "content/urldb.h" @@ -78,7 +78,7 @@ getter head %{ } if (element != NULL) { - head = find_first_named_dom_element(element, corestring_lwc_head) ; + head = libdom_find_first_element(element, corestring_lwc_head) ; if (head != NULL) { jsret = jsapi_new_HTMLElement(cx, NULL, NULL, (dom_element *)head, private->htmlc); } @@ -100,7 +100,7 @@ getter body %{ } if (element != NULL) { - body = find_first_named_dom_element(element, corestring_lwc_body) ; + body = libdom_find_first_element(element, corestring_lwc_body) ; if (body != NULL) { jsret = jsapi_new_HTMLElement(cx, NULL, NULL, (dom_element *)body, private->htmlc); } diff --git a/javascript/jsapi/htmlelement.bnd b/javascript/jsapi/htmlelement.bnd index 83941c1b7..18e343f68 100644 --- a/javascript/jsapi/htmlelement.bnd +++ b/javascript/jsapi/htmlelement.bnd @@ -42,4 +42,16 @@ api finalise %{ if (private != NULL) { dom_node_unref(private->node); } -%}
\ No newline at end of file +%} + +getter firstElementChild %{ + %} + +getter lastElementChild %{ + %} + +getter previousElementSibling %{ + %} + +getter nextElementSibling %{ + %} |