Closed
Bug 106360
Opened 23 years ago
Closed 23 years ago
charset parameter for external JS ignored
Categories
(Core :: Internationalization, defect)
Tracking
()
VERIFIED
FIXED
mozilla0.9.6
People
(Reporter: bobj, Assigned: nhottanscp)
Details
Attachments
(2 files)
1.38 KB,
application/zip
|
Details | |
696 bytes,
patch
|
ftang
:
review+
jst
:
superreview+
|
Details | Diff | Splinter Review |
The charset parameter for external JS scripts seems to be ignored. E.g.,
<script language="JavaScript" src="isolatin1.js" charset="iso-8859-1"></script>
or
<script language="JavaScript" src="utf8.js" charset="utf-8"></script>
It appears to ignore the charset parameter and assume the external JS script
is in the same encoding as the HTML document.
For the spec, see http://www.w3.org/TR/html4/interact/scripts.html#edef-SCRIPT
I'll zip up my test cases and attach to this bug.
Comment 3•23 years ago
|
||
--> Internationalization
Related to, or dupe of, one of these:
bug 63626
bug 104209
bug 103954
bug 104227
Assignee: rogerl → yokoyama
Component: Javascript Engine → Internationalization
QA Contact: pschwartau → teruko
Comment 4•23 years ago
|
||
I would say bug 104227 seems the most similar -
This bug is about the charset parameter for the <script> tag used for EXTERNAL
JS files which does not appear to be addressed by any of the other bugs
E.g.:
<script language="JavaScript" src="xx.js" CHARSET="iso-8859-1"></script>
bug 63626
Requests that when there is an encoding mismatch, we provide some feedback
about the error instead of silently failing.
bug 104209
Not enough details in this report (e.g., encoding of .html and .js,
parameters used by the <script> tag used). Marked dup of bug 63626.
bug 103954
In this bug, both the .html and the .js are encoded in UTF-8. I'm not sure
this is even an encoding problem.
bug 104227
Related to HTML <Meta> tag and INLINE JS.
Assignee | ||
Updated•23 years ago
|
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.9.7
Assignee | ||
Comment 7•23 years ago
|
||
Assignee | ||
Updated•23 years ago
|
Target Milestone: mozilla0.9.7 → mozilla0.9.6
Comment 8•23 years ago
|
||
Comment on attachment 55846 [details] [diff] [review]
request->mElement->GetCharset(charset) succeeded but the returned value 'charset' was ignored, fixed that problem.
r=ftang
Attachment #55846 -
Flags: review+
Comment 9•23 years ago
|
||
Comment on attachment 55846 [details] [diff] [review]
request->mElement->GetCharset(charset) succeeded but the returned value 'charset' was ignored, fixed that problem.
sr=jst
Attachment #55846 -
Flags: superreview+
Assignee | ||
Comment 10•23 years ago
|
||
Checked in.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•