зеркало из https://github.com/mozilla/pjs.git
Bug 27506 The Bonsai pages contain SCRIPTs which are not enclosed in
<!-- -->, greatly confusing some HTML parsers. r=kiko
This commit is contained in:
Родитель
a8e5ca2ea6
Коммит
9a8c0e2ac0
|
@ -398,7 +398,7 @@ print "</TD></TR></TABLE>\n";
|
|||
if ($use_layers || $use_dom) {
|
||||
# Write out cvs log messages as a JS variables
|
||||
# or hidden <div>'s
|
||||
print "<SCRIPT>" if $use_layers;
|
||||
print "<SCRIPT type='application/x-javascript'><--\n" if $use_layers;
|
||||
while (my ($revision, $junk) = each %usedlog) {
|
||||
|
||||
# Create a safe variable name for a revision log
|
||||
|
@ -423,7 +423,7 @@ if ($use_layers || $use_dom) {
|
|||
print "\";\n" if $use_layers;
|
||||
print "</div>\n" if $use_dom;
|
||||
}
|
||||
print "</SCRIPT>";
|
||||
print "//--></SCRIPT>";
|
||||
}
|
||||
|
||||
&print_bottom;
|
||||
|
@ -452,7 +452,7 @@ sub print_top {
|
|||
print "<HTML><HEAD><TITLE>CVS Blame $title_text</TITLE>";
|
||||
|
||||
print <<__TOP__ if $use_layers;
|
||||
<SCRIPT>
|
||||
<SCRIPT type='application/x-javascript'><!--
|
||||
var event = 0; // Nav3.0 compatibility
|
||||
document.loaded = false;
|
||||
|
||||
|
@ -517,14 +517,14 @@ max_link_length = 0;
|
|||
|
||||
initialLayer = "<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=3><TR><TD BGCOLOR=#F0A000><TABLE BORDER=0 CELLSPACING=0 CELLPADDING=6><TR><TD BGCOLOR=#FFFFFF><B>Page loading...please wait.</B></TD></TR></TABLE></td></tr></table>";
|
||||
|
||||
</SCRIPT>
|
||||
//--></SCRIPT>
|
||||
</HEAD>
|
||||
<BODY onLoad="finishedLoad();" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000EE" VLINK="#551A8B" ALINK="#F0A000">
|
||||
<LAYER SRC="javascript:initialLayer" NAME='popup' onMouseOut="this.visibility='hide';" LEFT=0 TOP=0 BGCOLOR='#FFFFFF' VISIBILITY='hide'></LAYER>
|
||||
<LAYER SRC="javascript:initialLayer" NAME='popup_guide' onMouseOut="this.visibility='hide';" LEFT=0 TOP=0 VISIBILITY='hide'></LAYER>
|
||||
__TOP__
|
||||
print <<__TOP__ if $use_dom;
|
||||
<script language="JavaScript">
|
||||
<script type="application/x-javascript"><!--
|
||||
var r
|
||||
function showMessage(rev,line) {
|
||||
if (r) {
|
||||
|
@ -548,7 +548,7 @@ function hideMessage() {
|
|||
r.style.display='none'
|
||||
}
|
||||
}
|
||||
</script>
|
||||
//--></script>
|
||||
|
||||
<style type="text/css">
|
||||
body {
|
||||
|
|
|
@ -520,7 +520,7 @@ sub parse_date {
|
|||
sub setup_script {
|
||||
|
||||
my $script_str = qq{
|
||||
<script>
|
||||
<script type="application/x-javascript"><!--
|
||||
var event = 0; // Nav3.0 compatibility
|
||||
|
||||
function js_who_menu(n,extra,d) {
|
||||
|
@ -567,7 +567,7 @@ function js_file_menu(repos,dir,file,rev,branch,d) {
|
|||
}
|
||||
|
||||
|
||||
</script>
|
||||
//--></script>
|
||||
|
||||
<layer name="popup" onMouseOut="this.visibility='hide';" left=0 top=0 bgcolor="#ffffff" visibility="hide">
|
||||
</layer>
|
||||
|
|
|
@ -477,9 +477,9 @@ sub do_diff_frameset {
|
|||
# Create links to document created by DIFF command.
|
||||
sub do_diff_links {
|
||||
|
||||
print qq{
|
||||
print qq%
|
||||
<HEAD>
|
||||
<SCRIPT LANGUAGE='JavaScript'>
|
||||
<SCRIPT type="application/x-javascript"><!--
|
||||
var anchor = -1;
|
||||
function nextAnchor() {
|
||||
if (anchor < parent.frames[0].document.anchors.length)
|
||||
|
@ -489,12 +489,12 @@ sub do_diff_links {
|
|||
if (anchor > 0)
|
||||
parent.frames[0].location.hash = --anchor;
|
||||
};
|
||||
</SCRIPT>
|
||||
//--></SCRIPT>
|
||||
<TITLE>$opt_file: $opt_rev1 vs. $opt_rev2</TITLE>
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="#FFFFFF" TEXT="#000000"
|
||||
LINK="#0000EE" VLINK="#551A8B" ALINK="#FF0000">
|
||||
};
|
||||
%;
|
||||
CheckHidden("$dir/$opt_file");
|
||||
|
||||
chdir($dir);
|
||||
|
|
|
@ -216,8 +216,8 @@ PutsTrailer();
|
|||
|
||||
sub setup_script {
|
||||
|
||||
$script_str = qq{
|
||||
<script>
|
||||
$script_str = qq%
|
||||
<script type="application/x-javascript"><!--
|
||||
|
||||
var event = new Object;
|
||||
|
||||
|
@ -274,7 +274,7 @@ function js_file_menu(dir,file,rev,root,d) {
|
|||
<layer name="popup" onMouseOut="this.visibility='hide';" left=0 top=0 bgcolor="#ffffff" visibility="hide">
|
||||
</layer>
|
||||
|
||||
};
|
||||
%;
|
||||
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче