summaryrefslogtreecommitdiffstats
path: root/dom/security/test/csp/file_xslt_inherits_csp.xsl
blob: 82a4b0ad978ef1703451e9d6aa13e06aa6321c5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.1">
    <xsl:output method="html"/>
    <xsl:variable name="title" select="/root/t"/>
    <xsl:template match="/">
    <html>
        <head>
            <title>
                <xsl:value-of select="$title"/>
            </title>
            <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
        </head>
        <body>
            <p>
                Below is some inline JavaScript generating some red text.
            </p>

            <p id="bug"/>
            <script>
               document.body.append("JS DID EXCECUTE");
            </script>

            <a onClick='document.body.append("JS DID EXCECUTE");' href="#">link with lineOnClick</a>
        </body>
    </html>
    </xsl:template>
</xsl:stylesheet>