Closed
Bug 291927
Opened 20 years ago
Closed 19 years ago
XML.prototype.replace does not work as expected
Categories
(Rhino Graveyard :: E4X, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
1.6R6
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>
Comment 1•19 years ago
|
||
Reassigning to please_see_bug_288433@eml.cc pending resolution of bug 288433
Assignee: igor.bukanov → please_see_bug_288433
Updated•19 years ago
|
Assignee: please_see_bug_288433 → nobody
Comment 2•19 years ago
|
||
This bug is fixed in the upcoming non-XMLBeans implementation of Rhino E4X; see bug 355677.
Status: NEW → ASSIGNED
Depends on: 355677
Comment 3•19 years ago
|
||
Updated•19 years ago
|
Flags: in-testsuite?
Updated•19 years ago
|
Attachment #254033 -
Attachment is patch: true
Comment 4•19 years ago
|
||
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
Updated•19 years ago
|
Attachment #254033 -
Attachment is patch: false
Updated•19 years ago
|
Attachment #254033 -
Flags: review?(bclary)
Comment 5•18 years ago
|
||
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-
Comment 6•18 years ago
|
||
Attachment #254033 -
Attachment is obsolete: true
Attachment #256636 -
Flags: review?
Updated•18 years ago
|
Attachment #256636 -
Flags: review? → review?(bclary)
Comment 7•18 years ago
|
||
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+
Comment 8•18 years ago
|
||
/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+
Comment 9•18 years ago
|
||
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.
Description
•