blob: 3b5b79627085d4fe2150a3785db1c921a040af26 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
<html>
<body>
<script>
if (window.testRunner)
testRunner.dumpAsText();
var accept = "<?php echo $_SERVER["HTTP_ACCEPT"]; ?>";
document.write("Accept: " + accept + "<br><br>");
if (accept.match(/application\/xhtml\+xml/)) {
document.write("PASS: The browser asks for XHTML.");
} else {
document.write("FAIL: The browser doesn't ask for XHTML");
}
</script>
</body>
</html>
|