mirror of
https://github.com/moparisthebest/xeps
synced 2024-12-21 23:28:51 -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:
parent
e1d8c56771
commit
2c93e79692
79
xep-0404.xml
79
xep-0404.xml
@ -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'
|
||||
to='hag66@shakespeare.example/UUID-a1j/7533'
|
||||
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'>
|
||||
<field var='FORM_TYPE' type='hidden'>
|
||||
<value>urn:xmpp:mix:anon:0</value>
|
||||
</field>
|
||||
<field type='list-single' label='Preference for JID Visibility
|
||||
var='JID Visibility'>
|
||||
</field>
|
||||
<field type='list-single' label='Preference for JID Visibility
|
||||
var='JID Visibility'>
|
||||
<option label='JID Never Shown'><value>Never</value></option>
|
||||
<option label='Default Behaviour'
|
||||
<value>default</value></option>
|
||||
<option label='Try not to show JID'>
|
||||
<value>prefer not</value></option>
|
||||
</field>
|
||||
<field type='list-single' label='Example Custom Preference'
|
||||
var='Custom Preference'>
|
||||
<option label='Default Behaviour'>
|
||||
<value>default</value>
|
||||
</option>
|
||||
<option label='Try not to show JID'>
|
||||
<value>prefer not</value>
|
||||
</option>
|
||||
</field>
|
||||
<field type='list-single' label='Example Custom Preference'
|
||||
var='Custom Preference'>
|
||||
<option label='One Option'><value>a</value></option>
|
||||
<option label='Another Option'><value>b</value></option>
|
||||
</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'
|
||||
to='coven@mix.shakespeare.example'
|
||||
id='E6E10350-76CF-40C6-B91B-1EA08C332FC7'>
|
||||
<user-preference xmlns='urn:xmpp:mix:anon:0'/>
|
||||
<x xmlns='jabber:x:data' type='submit'>
|
||||
<field var='FORM_TYPE' type='hidden'>
|
||||
<value>urn:xmpp:mix:anon:0</value>
|
||||
</field>
|
||||
<field var='JID Visibility'>
|
||||
<value>never</value>
|
||||
</field>
|
||||
<field var='Private Messages'>
|
||||
<value>allow</value>
|
||||
</field>
|
||||
<field var='vCard'>
|
||||
<value>block</value>
|
||||
</field>
|
||||
<user-preference xmlns='urn:xmpp:mix:anon:0'>
|
||||
<x xmlns='jabber:x:data' type='submit'>
|
||||
<field var='FORM_TYPE' type='hidden'>
|
||||
<value>urn:xmpp:mix:anon:0</value>
|
||||
</field>
|
||||
<field var='JID Visibility'>
|
||||
<value>never</value>
|
||||
</field>
|
||||
<field var='Private Messages'>
|
||||
<value>allow</value>
|
||||
</field>
|
||||
<field var='vCard'>
|
||||
<value>block</value>
|
||||
</field>
|
||||
</x>
|
||||
</user-preference>
|
||||
</iq>
|
||||
|
||||
<iq type='result'
|
||||
from='coven@mix.shakespeare.example'
|
||||
to='hag66@shakespeare.example/UUID-a1j/7533'
|
||||
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'>
|
||||
<field var='FORM_TYPE' type='hidden'>
|
||||
<value>urn:xmpp:mix:anon:0</value>
|
||||
</field>
|
||||
<field var='JID Visibility'>
|
||||
<value>never</value>
|
||||
</field>
|
||||
<field var='Private Messages'>
|
||||
<value>allow</value>
|
||||
</field>
|
||||
<field var='vCard'>
|
||||
<value>block</value>
|
||||
</field>
|
||||
<field var='FORM_TYPE' type='hidden'>
|
||||
<value>urn:xmpp:mix:anon:0</value>
|
||||
</field>
|
||||
<field var='JID Visibility'>
|
||||
<value>never</value>
|
||||
</field>
|
||||
<field var='Private Messages'>
|
||||
<value>allow</value>
|
||||
</field>
|
||||
<field var='vCard'>
|
||||
<value>block</value>
|
||||
</field>
|
||||
</x>
|
||||
</user-preference>
|
||||
</iq>
|
||||
|
Loading…
Reference in New Issue
Block a user