Closed Bug 140453 Opened 23 years ago Closed 23 years ago

XML file download

Categories

(Core :: XML, defect)

x86
Windows ME
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: p, Assigned: hjtoi-bugzilla)

Details

When loading an xml file Mozilla appears to be unable to handle absolute paths - only relative paths. The html page below can demonstrate the problem: ------------------- <html> <head> <script type="text/javascript"> var xml_doc function openFile(file){ xml_doc = document.implementation.createDocument("", "", null) xml_doc.onload = readFileMoz xml_doc.load(file) } function readFileMoz(){ alert(xml_doc.childNodes[1].nodeName) } document.write("<form>Enter File Name:&nbsp;<input type='text' id='input1'><br>") document.write("<input type='button' onclick='openFile(this.form.input1.value)' value='Open File'></form>") </script> </head> </html> ---------------- if a relative path file is entered in the input box it will be loaded successfully. If it is an absolute path it will not be loaded. patrick brennan
Browser, not bugzilla
Assignee: justdave → heikki
Component: Bugzilla-General → XML
Product: Bugzilla → Browser
QA Contact: matty → petersen
Version: 2.10 → other
changing Q/A contact
QA Contact: petersen → rakeshmishra
"file:///C:/temp/xml/x.xml" and "x.xml" both work fine for me (absolute & relative URL). Please note that document.load() parameter must be URL, not a file path on the OS. Marking worksforme.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.