summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmpp/element_buffer.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/xmpp/element_buffer.go b/xmpp/element_buffer.go
index c55279b..7792db2 100644
--- a/xmpp/element_buffer.go
+++ b/xmpp/element_buffer.go
@@ -37,6 +37,9 @@ func (e *elementBuffer) add(t xml.Token) error {
return nil
}
+// FIXME isComplete would be true if a stream with only one XML comment is
+// passed to the buffer. This might be unexpected behaviour.
+//
// isComplete returns true if the buffer contains a slice of XML tokens which
// form a complete XML element starting with an xml.StartElement and closing
// with the corresponding xml.EndElement.