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> 6 You should see 5 lines with "SUCCESS" below: 7 <script> 8 if (window.layoutTestController) 9 layoutTestController.dumpAsText(); 10 11 function 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 19 var metaTag = document.getElementById("test"); 20 checkExpected(metaTag, "[object HTMLMetaElement]"); 21 checkExpected(metaTag.name, "foo"); 22 checkExpected(metaTag.scheme, "bar"); 23 checkExpected(metaTag.httpEquiv, "content-type"); 24 checkExpected(metaTag.content, "text/html; charset=UTF-8"); 25 </script> 26 27 </body> 28 </html> 29