[TIMOB-4713] Android: XML Documents with Errors Not Throwing Exceptions
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Medium |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2011-07-27T10:28:10.000+0000 |
| Affected Version/s | Release 1.7.0 |
| Fix Version/s | Sprint 2011-30, Release 1.8.0 |
| Components | Android |
| Labels | parity |
| Reporter | Don Thorp |
| Assignee | Bill Dawson |
| Created | 2011-07-19T09:13:19.000+0000 |
| Updated | 2011-08-26T15:03:56.000+0000 |
Description
We're eating the exceptions, they should propagate according to the xml spec.
// Parse (some types of) invalid documents
valueOf(function() {
Ti.XML.parseString(localInvalid["mismatched_tag.xml"]);
}).shouldThrowException();
valueOf(function() {
Ti.XML.parseString(localInvalid["no_end.xml"]);
}).shouldThrowException();
valueOf(function() {
Ti.XML.parseString(localInvalid["no_toplevel.xml"]);
}).shouldThrowException();
Associated Helpdesk ticket
appc.me/c/APP-831275 Also, have added the customer priorityPull request ready: https://github.com/appcelerator/titanium_mobile/pull/290
Tested with: version=1.8.0 timestamp=08/26/11 14:21 githash=0e2031e Android Emulator 2.1 and 3.2