Closed
Bug 117853
Opened 24 years ago
Closed 24 years ago
String.prototype.bold() character case difference between mozilla and other browsers
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
VERIFIED
FIXED
People
(Reporter: teruko, Assigned: teruko)
References
()
Details
In the test case, I try to compare the
sStr.bold() and <B>abc</B> {note: sStr = abc}
Both are the same, but I got the fail result. In the intl_testlib.js, the equal
does not work in the functionevaluateRerult.
function evaluateResult(xExpected, xActual) {
var bResult = false;
// Pass/Fail Criteria
if (xExpected == xActual) {
var bResult = true;
}
return bResult;
}
The same thing happens in
http://bubblegum/ngdriver/suites/intl/i18n_sjis_string_italics.html
http://bubblegum/ngdriver/suites/intl/i18n_sjis_string_fontsize.html
http://bubblegum/ngdriver/suites/intl/i18n_sjis_string_strike.html
These works fine in 4.x. I do not know this is the right component. If not,
please reassign this.
Tested 01-02-2002 build.
| Assignee | ||
Updated•24 years ago
|
QA Contact: stummala → teruko
Comment 1•24 years ago
|
||
The JS engine's String.prototype.bold() in mozilla wraps the text with "<b>" and
"</b>", whereas the Netscape 4x and IE JS engines wraps the string in "<B>" and
"</B>". They both mean the same thing, but I don't know why this was changed in
the mozilla JS engine. Brendan, was there a reason for the
uppercase-to-lowercase change in the JS engine? Reassigning to the JS engine owner.
I doubt this breaks any real code though, so I'm not sure it's worth fixing...
Assignee: jst → rogerl
Component: DOM HTML → Javascript Engine
QA Contact: teruko → pschwartau
Hardware: PC → All
Updated•24 years ago
|
Summary: Equal(==) does not work correctly → String.prototype.bold() character case difference between mozilla and other browsers
Comment 2•24 years ago
|
||
Comment 4•24 years ago
|
||
Ok, makes sense, reassigning to Teruko so that he can either fix or remove the test.
Assignee: khanson → teruko
Comment 5•24 years ago
|
||
Resetting component and QA back to former values -
Component: Javascript Engine → DOM HTML
QA Contact: pschwartau → teruko
Comment 6•24 years ago
|
||
i think this bug is invalid
document.write('<B>abc</B>') and document.write(str.bold()) have the same effect
on the browser.
Comment 7•24 years ago
|
||
Yes, the bug is invalid, there's no problem in mozilla, but the testcase should
be either updated or removed. Once that's done this bug can be closed.
| Assignee | ||
Comment 8•24 years ago
|
||
OK. The test case are removed in the bubblegum.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•