1
0
mirror of https://github.com/moparisthebest/xeps synced 2024-11-24 18:22:24 -05:00

XEP-0404: Fix some of MIX-Anon examples

* XML validation & indent
* Wrong attribution of the form (<x/>) element, which was put as a
  sibling of thhe <user-preference/> element, where it should have
  been a child, according to the written text (and nearby examples)
This commit is contained in:
mathieui 2020-11-30 19:29:58 +01:00
parent e1d8c56771
commit 2c93e79692

View File

@ -278,21 +278,23 @@ This change means that the client will not be able to determine real JID of the
from='coven@mix.shakespeare.example' from='coven@mix.shakespeare.example'
to='hag66@shakespeare.example/UUID-a1j/7533' to='hag66@shakespeare.example/UUID-a1j/7533'
id='E6E10350-76CF-40C6-B91B-1EA08C332FC7'> id='E6E10350-76CF-40C6-B91B-1EA08C332FC7'>
<user-preference xmlns='urn:xmpp:mix:anon:0'> <user-preference xmlns='urn:xmpp:mix:anon:0'>
<x xmlns='jabber:x:data' type='form'> <x xmlns='jabber:x:data' type='form'>
<field var='FORM_TYPE' type='hidden'> <field var='FORM_TYPE' type='hidden'>
<value>urn:xmpp:mix:anon:0</value> <value>urn:xmpp:mix:anon:0</value>
</field> </field>
<field type='list-single' label='Preference for JID Visibility <field type='list-single' label='Preference for JID Visibility
var='JID Visibility'> var='JID Visibility'>
<option label='JID Never Shown'><value>Never</value></option> <option label='JID Never Shown'><value>Never</value></option>
<option label='Default Behaviour' <option label='Default Behaviour'>
<value>default</value></option> <value>default</value>
<option label='Try not to show JID'> </option>
<value>prefer not</value></option> <option label='Try not to show JID'>
</field> <value>prefer not</value>
<field type='list-single' label='Example Custom Preference' </option>
var='Custom Preference'> </field>
<field type='list-single' label='Example Custom Preference'
var='Custom Preference'>
<option label='One Option'><value>a</value></option> <option label='One Option'><value>a</value></option>
<option label='Another Option'><value>b</value></option> <option label='Another Option'><value>b</value></option>
</field> </field>
@ -308,41 +310,42 @@ This change means that the client will not be able to determine real JID of the
from='hag66@shakespeare.example/UUID-a1j/7533' from='hag66@shakespeare.example/UUID-a1j/7533'
to='coven@mix.shakespeare.example' to='coven@mix.shakespeare.example'
id='E6E10350-76CF-40C6-B91B-1EA08C332FC7'> id='E6E10350-76CF-40C6-B91B-1EA08C332FC7'>
<user-preference xmlns='urn:xmpp:mix:anon:0'/> <user-preference xmlns='urn:xmpp:mix:anon:0'>
<x xmlns='jabber:x:data' type='submit'> <x xmlns='jabber:x:data' type='submit'>
<field var='FORM_TYPE' type='hidden'> <field var='FORM_TYPE' type='hidden'>
<value>urn:xmpp:mix:anon:0</value> <value>urn:xmpp:mix:anon:0</value>
</field> </field>
<field var='JID Visibility'> <field var='JID Visibility'>
<value>never</value> <value>never</value>
</field> </field>
<field var='Private Messages'> <field var='Private Messages'>
<value>allow</value> <value>allow</value>
</field> </field>
<field var='vCard'> <field var='vCard'>
<value>block</value> <value>block</value>
</field> </field>
</x> </x>
</user-preference>
</iq> </iq>
<iq type='result' <iq type='result'
from='coven@mix.shakespeare.example' from='coven@mix.shakespeare.example'
to='hag66@shakespeare.example/UUID-a1j/7533' to='hag66@shakespeare.example/UUID-a1j/7533'
id='E6E10350-76CF-40C6-B91B-1EA08C332FC7'> id='E6E10350-76CF-40C6-B91B-1EA08C332FC7'>
<user-preference xmlns='urn:xmpp:mix:anon:0'> <user-preference xmlns='urn:xmpp:mix:anon:0'>
<x xmlns='jabber:x:data' type='result'> <x xmlns='jabber:x:data' type='result'>
<field var='FORM_TYPE' type='hidden'> <field var='FORM_TYPE' type='hidden'>
<value>urn:xmpp:mix:anon:0</value> <value>urn:xmpp:mix:anon:0</value>
</field> </field>
<field var='JID Visibility'> <field var='JID Visibility'>
<value>never</value> <value>never</value>
</field> </field>
<field var='Private Messages'> <field var='Private Messages'>
<value>allow</value> <value>allow</value>
</field> </field>
<field var='vCard'> <field var='vCard'>
<value>block</value> <value>block</value>
</field> </field>
</x> </x>
</user-preference> </user-preference>
</iq> </iq>