summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2023-06-29 21:36:26 +0200
committerxengineering <me@xengineering.eu>2023-06-29 21:36:26 +0200
commit3df1a88c726c08704e8b71c467bd8e11c9a52db6 (patch)
treeb3da91a3d41746620ca67891797b55df8edfdc09
parent4e09d963a5222fbda64fa8c1e333beabe77f9355 (diff)
downloadlimox-3df1a88c726c08704e8b71c467bd8e11c9a52db6.tar
limox-3df1a88c726c08704e8b71c467bd8e11c9a52db6.tar.zst
limox-3df1a88c726c08704e8b71c467bd8e11c9a52db6.zip
Add FIXME to element buffer specification
The behaviour is ok for now but should be improved in the future to make it more robust.
-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.