From 3df1a88c726c08704e8b71c467bd8e11c9a52db6 Mon Sep 17 00:00:00 2001 From: xengineering Date: Thu, 29 Jun 2023 21:36:26 +0200 Subject: Add FIXME to element buffer specification The behaviour is ok for now but should be improved in the future to make it more robust. --- xmpp/element_buffer.go | 3 +++ 1 file changed, 3 insertions(+) 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. -- cgit v1.2.3-70-g09d2