- test for http://bugzilla.opendarwin.org/show_bug.cgi?id=9572
Add application/xhtml+xml to the Accept header
The fix itself was landed on 2006-07-09, but I forgot about the test.
* http/tests/misc/xhtml-expected.txt: Added.
* http/tests/misc/xhtml.php: Added.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@15340
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2006-07-11 Alexey Proskuryakov <ap@nypop.com>
+
+ Reviewed by Darin.
+
+ - test for http://bugzilla.opendarwin.org/show_bug.cgi?id=9572
+ Add application/xhtml+xml to the Accept header
+
+ The fix itself was landed on 2006-07-09, but I forgot about the test.
+
+ * http/tests/misc/xhtml-expected.txt: Added.
+ * http/tests/misc/xhtml.php: Added.
+
2006-07-11 Beth Dakin <bdakin@apple.com>
Reviewed by Adele.
--- /dev/null
+Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
+
+PASS: The browser asks for XHTML.
--- /dev/null
+<html>
+<body>
+<script>
+if (window.layoutTestController)
+ layoutTestController.dumpAsText();
+
+var accept = "<?php $headers = getallheaders(); echo $headers["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>