2011-04-07 Adam Barth <abarth@webkit.org>
[WebKit-https.git] / LayoutTests / http / tests / security / contentSecurityPolicy / xsl-allowed.php
1 <?php
2 header("Content-Type: application/xhtml+xml");
3 header("X-WebKit-CSP: style-src *; script-src 'none'; options disable-xss-protection");
4
5 echo '<?xml version="1.0" encoding="UTF-8"?>';
6 echo '<?xml-stylesheet type="text/xsl" href="resources/style.xsl"?>';
7 ?>
8 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
9         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
10 <html xmlns="http://www.w3.org/1999/xhtml">
11 <head>
12 <script>
13 //<![CDATA[
14 if (window.layoutTestController)
15     layoutTestController.dumpAsText();
16 //]]>
17 </script>
18 </head>
19 <body>
20 The text below should indicate that the style sheet was applied.
21 <div />
22 </body>
23 </html>