Closed Bug 291937 Opened 20 years ago Closed 18 years ago

appendChild appends element instead of text "node"

Categories

(Rhino Graveyard :: E4X, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: lipp, Unassigned)

References

Details

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

When calling appendChild with a String argument, it should be appended as "text"
node, even if the string looks like XML

Reproducible: Always

Steps to Reproduce:
// Run this:

var root = <root/>
var s = "<text/>";
root.appendChild (s);
print (root.toXMLString());

Actual Results:  
<root>
  <text/>
</root>


Expected Results:  
<root>&lt;text/&gt;</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 Rhino E4X implementation.  See bug 355677.
Status: NEW → ASSIGNED
Depends on: 355677
Results match submitter's expected results if XMLBeans is not present.  See bug 355677.
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
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.