From b15fe723595219e0e31ec84af246446668d297c8 Mon Sep 17 00:00:00 2001 From: Gareth Aye Date: Tue, 8 Apr 2014 20:39:18 -0400 Subject: Bug 974554 - CalDAV parser should accept ical inside xml comments nested in elements --- lib/caldav/sax.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/caldav/sax.js') diff --git a/lib/caldav/sax.js b/lib/caldav/sax.js index e0c0a1b..c861eee 100644 --- a/lib/caldav/sax.js +++ b/lib/caldav/sax.js @@ -18,6 +18,7 @@ var events = [ 'ontext', + 'oncdata', 'onopentag', 'onclosetag', 'onerror', @@ -198,6 +199,10 @@ this._fireHandler('ontext', data); }, + oncdata: function(data) { + this._fireHandler('oncdata', data); + }, + onerror: function(data) { //TODO: XXX implement handling of parsing errors. //unlikely but possible if server goes down -- cgit