diff options
author | Adam Chlipala <adam@chlipala.net> | 2011-08-14 17:39:18 -0400 |
---|---|---|
committer | Adam Chlipala <adam@chlipala.net> | 2011-08-14 17:39:18 -0400 |
commit | 6116a76264c90c2d70daf616253d56ddfd8086b0 (patch) | |
tree | e5943aaf8f088e60d96a4c87d7228ec3c62c9593 /tests/dynTable.ur | |
parent | 36a762c2efa31b834437c91e334af1825a623a41 (diff) |
Fix bug with <dyn> as first child of <table>
Diffstat (limited to 'tests/dynTable.ur')
-rw-r--r-- | tests/dynTable.ur | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/dynTable.ur b/tests/dynTable.ur new file mode 100644 index 00000000..7fe295c6 --- /dev/null +++ b/tests/dynTable.ur @@ -0,0 +1,21 @@ +fun main () : transaction page = + s <- source <xml/>; + s1 <- source <xml/>; + n <- source 0; + return <xml><body> + <table> + <dyn signal={signal s}/> + <tr> <td>Hi</td> </tr> + </table> + + <button onclick={v <- get n; + set n (v + 1); + set s <xml><tr> <td>Whoa!({[v]})</td> </tr></xml>}/> + + <table> + <tr> <dyn signal={signal s1}/> </tr> + <tr> <td>Hi!</td> </tr> + </table> + + <button onclick={set s1 <xml><td>Whoa!</td></xml>}/> + </body></xml> |