Skip to content
This repository has been archived by the owner on Sep 25, 2018. It is now read-only.

should reject an scxml document containing foreach without @item #382

Open
mattoshry opened this issue Jan 6, 2017 · 0 comments
Open

should reject an scxml document containing foreach without @item #382

mattoshry opened this issue Jan 6, 2017 · 0 comments

Comments

@mattoshry
Copy link
Collaborator

Per [1], foreach/@item is required.

SCION should reject the following:

<scxml xmlns="http://www.w3.org/2005/07/scxml"
  version="1.0">

<state id="uber">

  <onentry>
    <!-- missing item -->
    <foreach array="[1, 2, 3]">
      <log expr="'bug'"/>
    </foreach>
  </onentry>

  <transition event="*" target="fail">
    <log expr="'unhandled event ' + JSON.stringify(_event)"/>
  </transition>

</state>

<final id="fail"/>

</scxml>

[1] https://www.w3.org/TR/scxml/#foreach

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant