handling event other than nodeSet

 <timing clock="page">
                <seq>
                    <cue select="//body" dur="5s">
                       <event name="doTest"/>
                    </cue>

                </seq>
</timing>

<body >
        <div>
            <p style:backgroundColor="lime" style:color="black" style:fontSize="100%"
                                        style:visibility="visible">Test</p>
        </div>

</body>

As per spec, Under <cue> element - If the child is an event element, an event is directed at each of the nodes in the nodeset.

In the above code, event is directed to <body> element. So will it be possible to trigger events  by doing modifications in the <timing> block  



Answer this question

handling event other than nodeSet

  • Computer Guy69146

    Ah, OK.

    What it means is that every node selected by the XPath expression will get the event fired to it; that doesn't mean all the child nodes will get the event, just the selected nodes.

    So, for example, in your code only the body will get the event because it is the only thing selected. But if you said:

    <cue select="//button" begin="1s" dur="1s">

    and you had 10 button elements on the page, all 10 of them would receive the event. Note that this only really matters if you attach event handlers to specific elements, rather than attaching them to the document itself.

    DOM Events are not implemented in iHDSim at the moment. If present, they would not be triggered by animations; only by DOM methods like removeChild or insertNode would trigger DOM Events. I am not aware of any compelling scenarios for DOM Events in HD DVD right now.



  • Basani

    Can you please edit to remove all the blank lines at the end

    I am not sure I understand the question; can you try re-phrasing, please



  • Mike Poole

    <timing clock="page">
                    <seq>
                        <cue select="//body" dur="5s">
                           <event name="doTest"/>
                        </cue>
                    </seq>
    </timing>
    <body >
            <div>
                <p style:backgroundColor="lime" style:color="black" style:fontSize="100%"
                                            style:visibility="visible">Test</p>
            </div>
    </body>
     
    As per spec (section 7.7.2.9.2 cue), If the child(of element)is an event element, an event is directed at each of the nodes in the nodeset.
    (1)Can u please explain the meaning of this sentence
    (2)Also I would like to know whether DOMEvents(like DOMNodeInserted, DOMAttrModified etc) will be triggered when changes are done only in element (assuming the appropriate events are registered).
    (3)Are these events trigered for all the nodes in the document object. If not which will be the nodeset(as in the above markup) and which are all the nodes that come under nodeset.

  • handling event other than nodeSet