summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/xml/XMLViewer.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/xml/XMLViewer.xsl')
-rw-r--r--Source/WebCore/xml/XMLViewer.xsl13
1 files changed, 8 insertions, 5 deletions
diff --git a/Source/WebCore/xml/XMLViewer.xsl b/Source/WebCore/xml/XMLViewer.xsl
index cb66858..4ee3ca8 100644
--- a/Source/WebCore/xml/XMLViewer.xsl
+++ b/Source/WebCore/xml/XMLViewer.xsl
@@ -248,16 +248,16 @@
<xsl:call-template name="style"/>
<xsl:call-template name="script"/>
</head>
- <body onload="onload()">
+ <body onload="onWebKitXMLViewerLoad()">
<div class="header">
- <span> <xsl:value-of select="$xml_has_no_style_message"/> </span>
+ <span> <xsl:value-of select="$xml_has_no_style_message"/> </span>
<br/>
</div>
<div class="pretty-print">
<xsl:apply-templates/>
</div>
- <div> </div>
+ <div id="source-xml"></div>
</body>
</html>
</xsl:template>
@@ -265,7 +265,7 @@
<xsl:template name="script">
<script type="text/javascript">
<xsl:text>
- function onload()
+ function onWebKitXMLViewerLoad()
{
drawArrows();
initButtons();
@@ -339,7 +339,6 @@
// To prevent selection on double click
e.preventDefault();
}
-
</xsl:text>
</script>
</xsl:template>
@@ -363,6 +362,10 @@
font-size: 13px;
}
+ #source-xml {
+ display: none;
+ }
+
.collapsable-content {
margin-left: 1em;
}