Closed Bug 130252 Opened 22 years ago Closed 22 years ago

unable to render http://sh.sina.com.cn

Categories

(Tech Evangelism Graveyard :: Chinese-Simplified, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: wenzhuo, Assigned: momoi)

References

()

Details

final rendering of this page <http://sh.sina.com.cn> fails and a blank page is
displayed.
confirming on Win2k using build 2002031103.

Page loads fine but then refreshes to a strange URL/text, part of the problem
may come from the following meta tag:
<meta http-equiv=Refresh content=900>

Need to investigate...
OS: Linux → All
Hardware: PC → All
Investigating, the problem does not come from the meta tag, but rather from some
JavaScript code, loaded at the end of page:

function getthedate(){
[...]
var cdate="<span
class=white9>"+month+"ÔÂ"+daym+"ÈÕÖÜ"+dayarray[day]+hours+":"+minutes+":"+seconds+"</span>"
	if (document.all)
	document.all.clock.innerHTML=cdate
	else
	document.write(cdate)
}
	if (!document.all)
	getthedate()

Is this a Mozilla bug or a Tech Evangelism issue ? document.all is clearly bad,
but then, why does document.write() replaces the whole page on Mozilla ?
getthedate() is actually called from showClock() which is called here in the
document:

[...]
<body bgcolor="#0A2752" text="#000000" leftmargin="1" topmargin="3"
onResize="resize()" onload="showclock()">

Evang.  The page is putting getthedate() on a timeout.  This means it runs 1
second after the page finishes loading.  Once the load is done, correct behavior
for a document.write() is to clear the old document.  NS4 does exactly the same
thing.
Assignee: asa → momoi
Status: UNCONFIRMED → NEW
Component: Browser-General → Asian
Ever confirmed: true
Product: Browser → Tech Evangelism
QA Contact: doronr → ruixu
Version: other → unspecified
Siwtch component to China to better track the issues.
Component: Asian → China
Kat, this page works fine. They use DW 4 and detect document.getElementById.
This is a Fixed
Per bclary's comment, it is resolved as fixed.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
VERIFIED with US NS7.0 PR1.
Status: RESOLVED → VERIFIED
Product: Tech Evangelism → Tech Evangelism Graveyard
You need to log in before you can comment on or make changes to this bug.