summaryrefslogtreecommitdiffstats
path: root/LayoutTests/fast/dom/HTMLMetaElement/meta-attributes.html
blob: 181565cbcb1e09928c73842f0e6395bd001a7a1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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>