The same as SAXExerciser, but without the processing instruction and comment before the root element, because S2D can"t handle it
| 267 | |
| 268 | |
| 269 | class SAX2DOMExerciser(SAXExerciser): |
| 270 | """The same as SAXExerciser, but without the processing instruction and |
| 271 | comment before the root element, because S2D can"t handle it""" |
| 272 | |
| 273 | def parse(self, _): |
| 274 | h = self._handler |
| 275 | h.startDocument() |
| 276 | h.startElement("html", AttributesImpl({})) |
| 277 | h.comment("a comment") |
| 278 | h.processingInstruction("target", "data") |
| 279 | h.startElement("p", AttributesImpl({"class": "paraclass"})) |
| 280 | h.characters("text") |
| 281 | h.endElement("p") |
| 282 | h.endElement("html") |
| 283 | h.endDocument() |
| 284 | |
| 285 | |
| 286 | class SAX2DOMTestHelper(pulldom.DOMEventStream): |
no outgoing calls
searching dependent graphs…