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)

defect
Not set
normal

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.
QA Contact: stummala → teruko
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
Summary: Equal(==) does not work correctly → String.prototype.bold() character case difference between mozilla and other browsers
The move from upper-case to lower-case was done in response to bug 76054, "String() HTML methods not XHTML compliant". Therefore I would be tempted to mark this as invalid - but I will defer to others' opinions on this. The discussion in bug 76054 is worth looking at.
Reassigning to Kenton -
Assignee: rogerl → khanson
Ok, makes sense, reassigning to Teruko so that he can either fix or remove the test.
Assignee: khanson → teruko
Resetting component and QA back to former values -
Component: Javascript Engine → DOM HTML
QA Contact: pschwartau → teruko
i think this bug is invalid document.write('<B>abc</B>') and document.write(str.bold()) have the same effect on the browser.
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.
OK. The test case are removed in the bubblegum.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Verified.
Status: RESOLVED → VERIFIED
Component: DOM: HTML → DOM: Core & HTML
QA Contact: teruko → general
You need to log in before you can comment on or make changes to this bug.