File: MutationEvent.xml

package info (click to toggle)
gmetadom 0.2.2-3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 3,396 kB
  • ctags: 1,195
  • sloc: sh: 8,353; xml: 3,772; cpp: 3,113; ansic: 2,660; ml: 932; makefile: 930
file content (129 lines) | stat: -rw-r--r-- 5,284 bytes parent folder | download | duplicates (9)
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<?xml version="1.0" encoding="utf-8"?>
<!-- $Id: MutationEvent.xml,v 1.1.1.1 2001/11/26 22:34:23 lpadovan Exp $ -->
<!-- MutationEvent interface -->

  <interface name="MutationEvent" inherits="Event"
    id="Events-MutationEvent" since="DOM Level 2">
    <descr>
    <p>The <code>MutationEvent</code> interface provides specific contextual 
	information associated with Mutation events.
    </p>
    </descr>

	<group id="Events-MutationEvent-attrChangeType" name="attrChangeType">
		<descr><p>An integer indicating in which way the <code>Attr</code> was changed.</p></descr>
		<constant name="MODIFICATION" type="unsigned short" value="1">
		  <descr><p>The <code>Attr</code> was modified in place.</p></descr>
		</constant>
		<constant name="ADDITION" type="unsigned short" value="2">
		  <descr><p>The <code>Attr</code> was just added.</p></descr>
		</constant>
		<constant name="REMOVAL" type="unsigned short" value="3">
		  <descr><p>The <code>Attr</code> was just removed.</p></descr>
		</constant>
	</group>

    <attribute type="Node" name="relatedNode" readonly="yes"
    id="Events-MutationEvent-relatedNode">
     <descr>
     <p>
	 <code>relatedNode</code> is used to identify a secondary node related to a mutation event.
	 For example, if a mutation event is dispatched to a node indicating that its parent
	 has changed, the <code>relatedNode</code> is the changed parent.  If an event is instead
	 dispatched to a subtree indicating a node was changed within it, the <code>relatedNode</code>
	 is the changed node.  In the case of the DOMAttrModified event it indicates the <code>Attr</code>
       node which was modified, added, or removed.
     </p>
     </descr>
    </attribute>

    <attribute type="DOMString" name="prevValue" readonly="yes"
    id="Events-MutationEvent-prevValue">
     <descr>
     <p>
	   <code>prevValue</code> indicates the previous value of the <code>Attr</code> node in
     DOMAttrModified events, and of the <code>CharacterData</code> node in DOMCharDataModified events.
     </p>
     </descr>
    </attribute>

    <attribute type="DOMString" name="newValue" readonly="yes"
    id="Events-MutationEvent-newValue">
     <descr>
     <p>
	   <code>newValue</code> indicates the new value of the <code>Attr</code> node in DOMAttrModified
     events, and of the <code>CharacterData</code> node in DOMCharDataModified events.
     </p>
     </descr>
    </attribute>

    <attribute type="DOMString" name="attrName" readonly="yes"
    id="Events-MutationEvent-attrName">
     <descr>
     <p>
	   <code>attrName</code> indicates the name of the changed <code>Attr</code> node in a
     DOMAttrModified event.
     </p>
     </descr>
    </attribute>

    <attribute type="unsigned short" name="attrChange" readonly="yes"
    id="Events-MutationEvent-attrChange">
     <descr>
     <p>
   <code>attrChange</code> indicates the type of change which triggered the DOMAttrModified event.
   The values can be <code>MODIFICATION</code>, <code>ADDITION</code>, or <code>REMOVAL</code>.
     </p>
     </descr>
    </attribute>

    <method name="initMutationEvent" id="Events-Event-initMutationEvent">
      <descr>
      <p>The <code>initMutationEvent</code> method is used to initialize the value of a <code>MutationEvent</code> created through
      the <code>DocumentEvent</code> interface.  This method may only be called before the <code>MutationEvent</code> has
      been dispatched via the <code>dispatchEvent</code> method, though it may be called multiple times during that
      phase if necessary.  If called multiple times, the final invocation takes precedence.</p>
      </descr>
      <parameters>
        <param name="typeArg" type="DOMString" attr="in">
          <descr><p>Specifies the event type.</p>
          </descr>
        </param>
        <param name="canBubbleArg" type="boolean" attr="in">
          <descr><p>Specifies whether or not the event can bubble.</p>
          </descr>
        </param>
        <param name="cancelableArg" type="boolean" attr="in">
          <descr><p>Specifies whether or not the event's default 
          action can be prevented.</p>
          </descr>
        </param>
        <param name="relatedNodeArg" type="Node" attr="in">
          <descr><p>Specifies the <code>Event</code>'s related Node</p>
          </descr>
        </param>
        <param name="prevValueArg" type="DOMString" attr="in">
          <descr><p>Specifies the <code>Event</code>'s <code>prevValue</code> attribute</p>
          </descr>
        </param>
        <param name="newValueArg" type="DOMString" attr="in">
          <descr><p>Specifies the <code>Event</code>'s <code>newValue</code> attribute</p>
          </descr>
        </param>
        <param name="attrNameArg" type="DOMString" attr="in">
          <descr><p>Specifies the <code>Event</code>'s <code>attrName</code> attribute</p>
          </descr>
        </param>
        <param name="attrChangeArg" type="unsigned short" attr="in">
          <descr><p>Specifies the <code>Event</code>'s <code>attrName</code> attribute</p>
          </descr>
        </param>
     </parameters>
     <returns type="void">
       <descr><p></p></descr>
     </returns>
     <raises>
      <!-- No exceptions -->
     </raises>
    </method>
  </interface>