Closed
Bug 185415
Opened 22 years ago
Closed 22 years ago
Mozilla does something really weird with classNames and RegExps in a Hashtable
Categories
(SeaMonkey :: General, defect)
Tracking
(Not tracked)
People
(Reporter: dhtmlkitchen, Assigned: asa)
References
()
Details
User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-US; rv:1.2.1) Gecko/20021130 Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-US; rv:1.2.1) Gecko/20021130 Bug appears when using regexp.test on a className. If the RegExp instance is recycled, it's test method will return false every other time. I have not been able to replicate this by using textNode.nodeValue of the paragraph. In that case, I get the expected result. Reproducible: Always Steps to Reproduce: 1. Try the example 2. 3. Actual Results: See the example Expected Results: Result should be consistent each time, no matter if the RegExp is new or recycled.
Comment 1•22 years ago
|
||
Actually, recycling the object _should_ affect what the .test() method returns. See also bug 112376 *** This bug has been marked as a duplicate of 98409 ***
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
Updated•20 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•