Closed Bug 125767 Opened 24 years ago Closed 24 years ago

JS write() with some META-charset don't render contents

Categories

(Core :: Internationalization, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED

People

(Reporter: chado_moz, Assigned: harishd)

Details

(Keywords: intl)

This is coming from Bugzilla-jp. Original report is: http://bugzilla.mozilla.gr.jp/show_bug.cgi?id=1887 . (as you know, that is written in Japanese.) JS document.write() with meta statement including some charset don't render contents at a time. Meta statment means like this: <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=Shift_JIS"> steps to reproduce: 1) go to http://www2.wbs.ne.jp/%7Echado/work/js_write4/js_write4_sjis.html . 2) click "no charset" link. called JS don't write META-charset. the word "Done" will be renderd in the lower frame. 3) click "ISO-8859-1" link. called JS write META-charset. the word "Done" will be renderd again. you may be better check View (Frame) Source at this point. 4) click any link other than above. called JS write META-charset. expected result: the word "Done" should be rendered as well as step 2 or 3. actual result : nothing is rendered. JS Console says nothing. at this point, View (Frame) Source shows source cut off right after META-charset statment (in some cases, View Source shows other things). then, when you do Reload Frame, the word "Done" will appear. now View Source shows remains next of META-charset statment. oh, charset=xxxxx works also :-) This problem is similar to bug 104227 , already marked as FIXED. Difference between the two is: JS of 104227 pool the generated doc in a variable, then write it via single document.write(). Now, in this case, JS write doc via multiple document.write()s without pooling. NC4.79-us for mac9 and NC4.7-ja for win98 work fine in all cases. Reproducible : Always. Builds I've tried: 0.9.8 is not useable since 104227 blocks this. Mac9 2002-02-04-08-trunk, 2002-02-11-08-trunk. Win98 2002-02-12-10-trunk, 2002-02-15-06-trunk.
Confirmed with 2002021411/Linux.
Assignee: yokoyama → harishd
Status: UNCONFIRMED → NEW
Ever confirmed: true
Reassigned to <harishd@netscape.com> and added <shanjian@netscape.com> to Cc: list.
Keywords: intl
QA Contact: ruixu → ylong
2001-09-28-16-trunk on win98 works fine. That build is the last one (that I have) before the bug 104227 has appeared. Also N6.1J, N6.2J and N6.2.1J (commercial) work fine so far. I've re-written testcase : http://www2.wbs.ne.jp/%7Echado/work/js_write4_2/js_write4_sjis.html
This now works since the fix for bug 125317 has landed.
Marking FIXED based on chado's comment.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Verified fixed on 05-03 branch build.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.