diff options
Diffstat (limited to 'test')
-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> |