37 |
|
|
38 |
package gnu.xml.dom; |
package gnu.xml.dom; |
39 |
|
|
40 |
import java.util.Vector; |
import org.w3c.dom.DOMException; |
|
|
|
41 |
import org.w3c.dom.Node; |
import org.w3c.dom.Node; |
42 |
import org.w3c.dom.events.Event; |
import org.w3c.dom.events.Event; |
43 |
import org.w3c.dom.events.EventListener; |
import org.w3c.dom.events.EventListener; |
75 |
{ |
{ |
76 |
if (!root.isSupported("MutationEvents", "2.0")) |
if (!root.isSupported("MutationEvents", "2.0")) |
77 |
{ |
{ |
78 |
throw new DomEx(DomEx.NOT_SUPPORTED_ERR, |
throw new DomDOMException(DOMException.NOT_SUPPORTED_ERR, |
79 |
"Iterator needs mutation events", root, 0); |
"Iterator needs mutation events", root, 0); |
80 |
} |
} |
81 |
|
|
153 |
{ |
{ |
154 |
if (done) |
if (done) |
155 |
{ |
{ |
156 |
throw new DomEx(DomEx.INVALID_STATE_ERR); |
throw new DomDOMException(DOMException.INVALID_STATE_ERR); |
157 |
} |
} |
158 |
right = true; |
right = true; |
159 |
return walk(true); |
return walk(true); |
170 |
{ |
{ |
171 |
if (done) |
if (done) |
172 |
{ |
{ |
173 |
throw new DomEx(DomEx.INVALID_STATE_ERR); |
throw new DomDOMException(DOMException.INVALID_STATE_ERR); |
174 |
} |
} |
175 |
Node previous = reference; |
Node previous = reference; |
176 |
right = false; |
right = false; |