Closed Bug 291927 Opened 20 years ago Closed 19 years ago

XML.prototype.replace does not work as expected

Categories

(Rhino Graveyard :: E4X, defect)

All
Windows 2000
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: lipp, Unassigned)

References

Details

Attachments

(1 file, 1 obsolete file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.7) Gecko/20050414 Firefox/1.0.3 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.7) Gecko/20050414 Firefox/1.0.3 The replace method does not work as expected, see below. Reproducible: Always Steps to Reproduce: Run this: var root = <root>text</root>; print (root.toXMLString()); print (root.child(0).toXMLString()); root.replace (0, "new text"); print (root.toXMLString()); Actual Results: <root>text</root> text <root/> Expected Results: <root>text</root> text <root>new text</root>
Reassigning to please_see_bug_288433@eml.cc pending resolution of bug 288433
Assignee: igor.bukanov → please_see_bug_288433
Assignee: please_see_bug_288433 → nobody
This bug is fixed in the upcoming non-XMLBeans implementation of Rhino E4X; see bug 355677.
Status: NEW → ASSIGNED
Depends on: 355677
Attached file proposed testcase (obsolete) —
Flags: in-testsuite?
Attachment #254033 - Attachment is patch: true
The results under Rhino without XMLBeans now match the submitter's expected results. See bug 355677.
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Attachment #254033 - Attachment is patch: false
Attachment #254033 - Flags: review?(bclary)
Comment on attachment 254033 [details] proposed testcase ditto the issues in bug 288027. Since you are working on tests which are identifiable with definite sections in the spec, I think they should be named accordingly... e4x/XML/13.4.4.32-01.js. I prefer using 01,02, etc just for sorting sake in case we ever have more than 9 subtests. David, again, if the changes to the license block, etc. are ok with you, I'll go ahead and check in the modified version. Thanks for taking the time to do this. I _really_ do appreciate it.
Attachment #254033 - Flags: review?(bclary) → review-
Attachment #254033 - Attachment is obsolete: true
Attachment #256636 - Flags: review?
Attachment #256636 - Flags: review? → review?(bclary)
Comment on attachment 256636 [details] Fixed license and filename + with Michael added as contributor. Sorry I have missed reviewing this test. I am checking it in now.
Attachment #256636 - Flags: review?(bclary) → review+
/cvsroot/mozilla/js/tests/e4x/XML/13.4.4.32-01.js,v <-- 13.4.4.32-01.js initial revision: 1.1
Flags: in-testsuite? → in-testsuite+
Adding target milestone of 1.6R6 based on the date this bug was resolved FIXED.
Target Milestone: --- → 1.6R6
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: