summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorVincent Sanders <vince@netsurf-browser.org>2012-11-16 15:29:53 +0000
committerVincent Sanders <vince@netsurf-browser.org>2012-11-16 15:31:14 +0000
commite36b8f657997ffca3d1cc1fe1a7130854d247262 (patch)
tree1694ef785162ac50be10078a8b7c21602da449fd /test
parentc5fb16d56df03580d99fae44d9fea44868f33cc5 (diff)
downloadnetsurf-e36b8f657997ffca3d1cc1fe1a7130854d247262.tar.gz
netsurf-e36b8f657997ffca3d1cc1fe1a7130854d247262.tar.bz2
safely deal with NULL strings
Diffstat (limited to 'test')
-rw-r--r--test/js/dom-node-enumerate.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/js/dom-node-enumerate.html b/test/js/dom-node-enumerate.html
index 6cbff2438..261d68020 100644
--- a/test/js/dom-node-enumerate.html
+++ b/test/js/dom-node-enumerate.html
@@ -16,6 +16,12 @@ function output(x,y) {
for(var key in Node){
output(key, Node[key]);
}
+
+ document.body.appendChild(document.createElement('hr'));
+
+for(var key in document.body){
+output(key, document.body[key]);
+}
</script>
</body>
</html>