summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/manual-tests/wml/onevent-shadow.wml
blob: cdd0459e044bfc7705bf076c37f156aa57b751ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
    <template>
        <onevent type="onenterforward">
            <go href="#card2"/>
        </onevent>
    </template>

    <card id="card1" title="Card One">
        <onevent type="onenterforward">
            <go href="#card3"/>
        </onevent>

        <p>Test for onevent shadowing in WML</p>
        <p>The card-level onevent will shadow the deck-level onevent. As a result, card 1 won't jump to card2 but
           to card 3 according to the card-level onevent's requirement. After entered the card 3, the deck-level onevent
           element isn't shadowed by this card, so it will jump to card 2 immediately.</p>
    </card>

    <card id="card2" title="Card two" onenterforward="">
        <p>This is card 2</p>
    </card>

    <card id="card3" title="Card Three">
        <p>This is card 3</p>
    </card>
</wml>