Closed Bug 466819 Opened 16 years ago Closed 16 years ago

XMLDocument to XML using e4x javascript causes TypeError

Categories

(Core :: XML, defect)

x86
Linux
defect
Not set
minor

Tracking

()

RESOLVED DUPLICATE of bug 270553

People

(Reporter: wcr, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.8.1.18) Gecko/20081030 SeaMonkey/1.1.13
Build Identifier: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.8.1.18) Gecko/20081030 SeaMonkey/1.1.13

TypeError: can't convert XML(src) to XML

    var e = document.getElementById('id_frame');
    e.src=url;
    if ( e ==  null ) {
      alert('no e');
    }
    var src=e.contentDocument;
    var doc=XML(src);

I was under the impression from reading the specification that support for DOM conversion to the XML type was optional, although was supported by e4x implementation on mozilla.


Reproducible: Always

Steps to Reproduce:
1. load src into iframe
2. get content document of iframe
3. convert document to XML
Actual Results:  
TypeError: can't convert XML(src) to XML

Expected Results:  
expect to get a XML object
Component: General → XML
Product: SeaMonkey → Core
QA Contact: general → xml
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.