meta-attributes.html revision eff69b907ef2cd3a9af0351287a929c66f58e3f6
1<html>
2<head>
3<meta id="test" name="foo" scheme="bar" http-equiv="content-type" content="text/html; charset=UTF-8">
4</head>
5<body>
6You should see 5 lines with "SUCCESS" below:
7<script>
8if (window.layoutTestController)
9    layoutTestController.dumpAsText();
10
11function checkExpected(actual, expected)
12{
13    if (actual != expected)
14        document.writeln("<p>FAILURE: expected \"" + expected + "\", actual \"" + actual + "\"</p>");
15    else
16        document.writeln("<p>SUCCESS (value: \"" + actual + "\")</p>");
17}
18
19var metaTag = document.getElementById("test");
20checkExpected(metaTag, "[object HTMLMetaElement]");
21checkExpected(metaTag.name, "foo");
22checkExpected(metaTag.scheme, "bar");
23checkExpected(metaTag.httpEquiv, "content-type");
24checkExpected(metaTag.content, "text/html; charset=UTF-8");
25</script>
26
27</body>
28</html>
29