classification
Title: pulldom doesn't provide END_DOCUMENT or COMMENT nodes.
Type: behavior Stage:
Components: XML Versions: Python 3.2
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: eric.araujo, mark.smith
Priority: normal Keywords:

Created on 2010-07-24 13:01 by mark.smith, last changed 2010-07-24 14:47 by eric.araujo.

Files
File name Uploaded Description Edit
test_pulldom.py mark.smith, 2010-07-24 13:01 A TestCase to demonstrate this issue.
Messages (2)
msg111474 - (view) Author: Mark Smith (mark.smith) * Date: 2010-07-24 13:01
I've been developing unit tests to increase the code coverage for pulldom, and have discovered that comments and end_document do not appear to result in events being obtained from the DOMEventStream.

I've attached a failing TestCase to demonstrate this.
msg111486 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2010-07-24 14:47
I tried looking at the doc to see if this was by design, and well, pulldom docs :) So I looked at the code, same thing, and finally read the commit history. It appears that pulldom is supposed to be DOM-compliant, so go ahead in adding unit tests for that and fixing it.
History
Date User Action Args
2010-07-24 14:47:18eric.araujosetnosy: + eric.araujo
messages: + msg111486
2010-07-24 13:01:50mark.smithcreate