Hi, According to the wording of XEP-0428, the `for` attribute "indicates the specification that the fallback is meant to replace". And further, "This is typically the primary namespace of the respective specification, but may be specified otherwise." While it has indeed not been made very explicit, from this follows: - Every valid value of `for` is specified as such somewhere. Putting a namespace in the `for` attribute without a specification describing what that namespace means in the `for` attribute is therefore unspecified behavior. - The fallback is for clients not supporting a specification or not supporting the specification for that message as a whole, not for clients not supporting, not displaying or otherwise not treating a part of the message. - XEP-0428 does not specify what is to be done with the fallback in case the specification is not supported. That is intentionally left open so that `for` attribute value specifications can make sufficient rules here. For example, a rule might be that the fallback is only removed when it matches a specific text pattern. So to be more specific to your question and example: A message can't have a fallback element with `for="jabber:x:oob"`, because neither XEP-0066 nor any other document specify this or tell what this would mean. Given that the existence of the oob tag on a message has also no specified meaning other than "communicate a URI", I also wouldn't know what a reasonable rule for this could look like. Further, XEP-0066 also does not specify how or if multiple URIs can be communicated in a single message (it does however specify an optional description for the resource identified by the URI). If a message has two SFS in them and a body with two links to the files, the fallback element could be used (because XEP-0447 describes this). In that case it doesn't matter if you put a single fallback element with the whole body, a fallback element with two body start-to- end elements or two fallback elements each with a body start-to-end: In all cases you are indicating to recipient clients that the body is only for those that don't support SFS. There is no concept in XEP-0447 of a client that supports SFS partially and e.g. only the first file of a message or only those with disposition inline. I don't know what clients do send in the wild right now, so this is speaking from a specification point of view. Marvin PS: XEP-0447 has an explicit example on how to send multi-file messages in backwards compatible way by using more than one message. On Sun, 2026-11-29 at 18:30 +0000, snit--- via Standards wrote:
Hello,
some stanzas I receive contain multiple fallback elements for the same namespace. For example, a client sends multiple files in one message, attaching an OOB and/or SFS element for each file, and then a fallback element for each OOB/SFS element contained in the body.
This tells the recipient _where_ a fallback is, as well as _which namespace_ it applies to, but not _which element_ of the namespace that the fallback corresponds to. Is there an established rule for disambiguating which fallback applies to which of the multiple elements it could apply to?
My intuition is that fallbacks are put in the same order as the elements they correspond to, so the first OOB fallback attaches to the first OOB element, the second fallback to the second OOB element, and so on.
Whatever the answer (if any), it would be nice to note this in XEP- 0428 to ensure a recipient can unambiguously determine how to handle such stanzas. I don't like the idea that clients are already sending stanzas like these, but with no (explicitly) agreed-upon way to interpret and disambiguate them. _______________________________________________ Standards mailing list -- standards@xmpp.org To unsubscribe send an email to standards-leave@xmpp.org