summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill Thompson <will.thompson@collabora.co.uk>2010-09-30 19:32:03 +0100
committerWill Thompson <will.thompson@collabora.co.uk>2010-09-30 19:32:03 +0100
commita6fa4142695f0baafc70db723b8488cffe66c666 (patch)
treea12e5444cdda2ee59195d3b51b38e9c763b870eb
parent0106c8840a9ebb1fe0b2c91055141106fce28568 (diff)
specparser: keep Document object around.
We need the Document object to be able to cleanly create new elements.
-rw-r--r--tools/specparser.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/specparser.py b/tools/specparser.py
index ec30aa92..bd0ac822 100644
--- a/tools/specparser.py
+++ b/tools/specparser.py
@@ -930,6 +930,8 @@ class ErrorsSection(Section):
class Spec(SectionBase):
def __init__(self, dom, spec_namespace):
+ self.document = dom
+
# build a dictionary of errors in this spec
try:
errorsnode = dom.getElementsByTagNameNS(XMLNS_TP, 'errors')[0]