Hi Dave, Maybe I need to explain a little bit more on that. Of course you may put *any* value into the for attribute, and for the purposes of XEP-0428, that carries the exact same meaning: The part of the message body or all of it is a fallback for something. Now the interesting question is what to do with that information. Even a client that has no idea what the for attribute value is referring to might decide to put special formatting to the fallback part or otherwise indicate to its user that this is not the sender intended content and only exists so that their client can still display something useful. However, I do not believe that we should assume receiving clients to do anything in particular with a marked fallback when we don't also have a specification saying so based on the value of the for attribute. So your example with fallback for JMI is that the body is indeed a fallback, but the receiving client doesn't have any rules for what to do with that for attribute value and thus would treat it the same as any other unknown for attribute value. XEP-0428 says that the for attribute value is "typically the primary namespace of the respective specification". That is intentionally very vague, for once because we don't actually define "primary namespace of a specification" (although I agree we all probably have a good understanding of what is meant with that phrase) and also it says "typically" making it clear that it doesn't need to be and diversion is entirely allowed and possible. The intention of the wording was to give guidance to XEP authors that want to define behavior for a `for` attribute value, not to say that once you put a namespace there, every client knowing that namespace must hide the fallback. If we were to still make use of the registrar, we should probably introduce a registry of `for` attribute values. XEP-0428 also says "supporting clients can hide or dim those parts when displaying them to the user or otherwise treat those parts special as intended or encouraged by other specifications". That again supports my point of not expecting any particular behavior without explicit specification wording. Regarding your JMI with fallback body Conversations behavior, I do agree that nothing suggests that a message that has both a body and JMI should not cause JMI behavior. That is, however, independent of adding a fallback element to it. Marvin On Mon, 2026-11-30 at 09:22 +0000, Dave Cridland wrote:
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. _______________________________________________ Standards mailing list -- standards@xmpp.org To unsubscribe send an email to standards-leave@xmpp.org