mirror of
https://github.com/moparisthebest/xeps
synced 2024-12-21 23:28:51 -05:00
XEP-0050. Try to clarify usage of 'execute'
This commit is contained in:
parent
c9a70af391
commit
e90ead0673
@ -526,17 +526,19 @@
|
||||
</li>
|
||||
<li>If there is an <actions/> element, the user-agent usually uses a multi-stage dialog or view, such as a wizard.
|
||||
<ul>
|
||||
<li>The action "execute" is always allowed, and is equivalent to the action "next".</li>
|
||||
<li>The action "execute" is always allowed, and is equivalent to the action "next". A form that has an <actions/> element, no "execute" attribute, and for which <next/> is not an available action is therefore invalid.</li>
|
||||
<li>The "prev" action is typically the "back" or "previous" button or option in a wizard. If <prev/> is not contained by the <actions/>, it is disabled.</li>
|
||||
<li>The "next" action is typically the "next" button or option in a wizard. If <next/> is not contained by the <actions/>, it is disabled.</li>
|
||||
<li>The "complete" action is typically the "finish" or "done" button or option in a wizard. If <complete/> is not contained by the <actions/>, it is disabled.</li>
|
||||
<li>If the <actions/> possesses the "execute" attribute, that value is the default button or option. If the <actions/> does not possess the "execute" attribute, there is no default button or option.</li>
|
||||
<li>As the "execute" command is equivalent to another command ("next" in the absence of an "execute" attribute), it is not suggested that a user-agent shows both the "execute" and the command that "execute" is an alias of in their interface.</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ol>
|
||||
<p>Responders SHOULD use the following guidelines when providing <actions/>:</p>
|
||||
<ul>
|
||||
<li>The "execute" attribute SHOULD NOT specify a value that does not match one of the allowed actions.</li>
|
||||
<li>As user-agents treat the absence of an "execute" attribute as equivalent to "next", when the <actions/> element is provided, it is invalid to return a command that has no "execute" attribute, an actions element, and no <next/> action</li>
|
||||
</ul>
|
||||
</section2>
|
||||
<section2 topic='Command Payloads' anchor='impl-payloads'>
|
||||
|
Loading…
Reference in New Issue
Block a user