diff options
| author | xengineering <me@xengineering.eu> | 2023-06-29 21:36:26 +0200 |
|---|---|---|
| committer | xengineering <me@xengineering.eu> | 2023-06-29 21:36:26 +0200 |
| commit | 3df1a88c726c08704e8b71c467bd8e11c9a52db6 (patch) | |
| tree | b3da91a3d41746620ca67891797b55df8edfdc09 | |
| parent | 4e09d963a5222fbda64fa8c1e333beabe77f9355 (diff) | |
| download | limox-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.go | 3 |
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. |
