summaryrefslogtreecommitdiffstats
path: root/LayoutTests/fast/dom/HTMLMetaElement/meta-attributes.html
diff options
context:
space:
mode:
Diffstat (limited to 'LayoutTests/fast/dom/HTMLMetaElement/meta-attributes.html')
-rw-r--r--LayoutTests/fast/dom/HTMLMetaElement/meta-attributes.html28
1 files changed, 28 insertions, 0 deletions
diff --git a/LayoutTests/fast/dom/HTMLMetaElement/meta-attributes.html b/LayoutTests/fast/dom/HTMLMetaElement/meta-attributes.html
new file mode 100644
index 0000000..181565c
--- /dev/null
+++ b/LayoutTests/fast/dom/HTMLMetaElement/meta-attributes.html
@@ -0,0 +1,28 @@
+<html>
+<head>
+<meta id="test" name="foo" scheme="bar" http-equiv="content-type" content="text/html; charset=UTF-8">
+</head>
+<body>
+You should see 5 lines with "SUCCESS" below:
+<script>
+if (window.layoutTestController)
+ layoutTestController.dumpAsText();
+
+function checkExpected(actual, expected)
+{
+ if (actual != expected)
+ document.writeln("<p>FAILURE: expected \"" + expected + "\", actual \"" + actual + "\"</p>");
+ else
+ document.writeln("<p>SUCCESS (value: \"" + actual + "\")</p>");
+}
+
+var metaTag = document.getElementById("test");
+checkExpected(metaTag, "[object HTMLMetaElement]");
+checkExpected(metaTag.name, "foo");
+checkExpected(metaTag.scheme, "bar");
+checkExpected(metaTag.httpEquiv, "content-type");
+checkExpected(metaTag.content, "text/html; charset=UTF-8");
+</script>
+
+</body>
+</html>