diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2015-10-29 11:47:53 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2015-10-29 11:47:53 +0000 |
commit | 6098646e727533f7e7a7c062822e51a59c34161e (patch) | |
tree | 2fa84421c0509e55b5ad2ba208f4bfc85b1ba23a /test/js | |
parent | 8ff9abf5b69c2040ff70890ac85d459a9c9e5537 (diff) | |
download | netsurf-6098646e727533f7e7a7c062822e51a59c34161e.tar.gz netsurf-6098646e727533f7e7a7c062822e51a59c34161e.tar.bz2 |
Add binding for DIV element's align getter/setter, and test.
Currently the second part of the test fails.
Diffstat (limited to 'test/js')
-rw-r--r-- | test/js/dom-html-div-element.html | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/js/dom-html-div-element.html b/test/js/dom-html-div-element.html new file mode 100644 index 000000000..b653b0c40 --- /dev/null +++ b/test/js/dom-html-div-element.html @@ -0,0 +1,22 @@ +<!DOCTYPE html> +<html> +<head> +<title>document interface enumeration</title> +<link rel="stylesheet" type="text/css" href="tst.css"> +</head> +<body> +<h1>HTMLDivElement test</h1> + +<script> + var e = document.createElement("Div"); + var t = document.createTextNode("This text should be aligned right."); + e.appendChild(t); + e.setAttribute("id", "test"); + e.align = "right"; + document.body.appendChild(e); + var test = document.getElementById("test"); + document.write("The align attribute for the above text is set to: ", test.align, "."); +</script> + +</body> +</html> |