On Sun, 29 Nov 2026 at 21:19, Marvin W. via Standards <standards@xmpp.org> wrote:
- 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.
I don't think it does follow at all. I think it's sensible for specifications to suggest fallback namespaces; I don't think it's essential for them to do so. Moreover, I think the "unknown for value" is very well specified, and indeed entirely the point of the specification!
- 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.
Agreed.
- 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.
I think it does - if someone sends a fallback for value that is (for some reason) not understood by the receiving client, then the fallback "edit" isn't applied. Fun example: Sending a JMI message to Conversations with a fallback for JMI causes Conversations to disregard the JMI element entirely, and only display the fallback text. I can follow it might choose to display the fallback body - I think that's poor behaviour but not illegal - but I think not handling the JMI is wrong.
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).
I don't follow this logic. A receiving client should just display the body unadjusted by the fallback, or, if it decides it understands "jabber:x:oob", it applies the fallback.
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.
Agreed. Dave.