From da76da388aec9bafd6d49ec4bbb3d30b741bdcb1 Mon Sep 17 00:00:00 2001 From: callin2 Date: Mon, 20 Jul 2015 19:51:45 +0900 Subject: [PATCH] Update xml-stream.js add missing 'comment' event. which already exists in node-expat ^^. --- lib/xml-stream.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/xml-stream.js b/lib/xml-stream.js index 85fef92..f985847 100644 --- a/lib/xml-stream.js +++ b/lib/xml-stream.js @@ -496,6 +496,11 @@ function parse() { } curr.fullText += text; }); + + // Just forward comment event. + xml.on('comment', function(comment){ + self.emit('comment', comment); + }); // This prelude array and string are used during encoding detection.