summaryrefslogtreecommitdiff
path: root/utils/domutils.h
diff options
context:
space:
mode:
authorVincent Sanders <vince@netsurf-browser.org>2012-11-07 18:47:35 +0000
committerVincent Sanders <vince@netsurf-browser.org>2012-11-07 18:53:05 +0000
commit43fb761f450e463dbce7431d20606cf795daf04c (patch)
treeb7d45686726ed0eabc02d78349cd12fdcc17d536 /utils/domutils.h
parentecd8364fe12197ec2ac3735d85ef24c35f92be01 (diff)
downloadnetsurf-43fb761f450e463dbce7431d20606cf795daf04c.tar.gz
netsurf-43fb761f450e463dbce7431d20606cf795daf04c.tar.bz2
add document.body, head and documentElement getters
add a dom utility file and use it
Diffstat (limited to 'utils/domutils.h')
-rw-r--r--utils/domutils.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/utils/domutils.h b/utils/domutils.h
new file mode 100644
index 000000000..ecdf2bc4a
--- /dev/null
+++ b/utils/domutils.h
@@ -0,0 +1,24 @@
+/*
+ * Copyright 2012 Vincent Sanders <vince@netsurf-browser.org>
+ *
+ * This file is part of NetSurf, http://www.netsurf-browser.org/
+ *
+ * NetSurf is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; version 2 of the License.
+ *
+ * NetSurf is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef _NETSURF_UTILS_DOMUTILS_H_
+#define _NETSURF_UTILS_DOMUTILS_H_
+
+dom_node *find_first_named_dom_element(dom_node *parent, lwc_string *element_name);
+
+#endif